Post by dartfrog » Thu Feb 19, 2015 12:27 am

Postby dartfrog » Mon Feb 16, 2015 11:24 pm
Hi Hope someone can help

I have looked though the help section but can not find what I am after.

I am trying to hide a sub category of products and make it available to view by only my trade customers when they have logged in is this possible and if so how do I do this?

Thanks for any help in advance :)

Newbie

Posts

Joined
Tue Jan 20, 2015 5:38 am

Post by starlins » Thu Feb 19, 2015 5:21 pm

I will provide code to achieve this

Website : http://starlinsoftware.com
Email : sales@starlinsoftware.com
Skype : amey.kulkarni19


Newbie

Posts

Joined
Thu Feb 19, 2015 3:22 pm


Post by dartfrog » Thu Apr 02, 2015 4:46 am

still looking for help with this :)

Newbie

Posts

Joined
Tue Jan 20, 2015 5:38 am

Post by chulcha » Thu Apr 02, 2015 6:54 am

Yes? it is really

/catalog/controller/product/category.php

Code: Select all

			$category_id = (int)array_pop($parts);
if ($this->customer->isLogged() && $category_id == XXX){
 /// There should be a code for outputting information about the categories and products
} else {
$this->data['logged'] = 'Logged pleese!!!';
//This variable should be used in the template
}


                       $this->data['continue'] = $this->url->link('common/home');

			if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/category.tpl')) {
				$this->template = $this->config->get('config_template') . '/template/product/category.tpl';
			} else {
				$this->template = 'default/template/product/category.tpl';
			}
			
			$this->children = array(
				'common/column_left',
				'common/column_right',
				'common/content_top',
				'common/content_bottom',
				'common/footer',
				'common/header'
			);


Active Member

Posts

Joined
Fri Jul 18, 2014 4:39 pm
Who is online

Users browsing this forum: No registered users and 3 guests