Page 1 of 1

two different disigns of "category list design"

Posted: Mon Jan 23, 2012 7:06 am
by icesy
Hello people, I have big problem,

I try to add new - upgraded design of category.tpl in /catalog/view/theme/default/template/product/

I want to leave category.tpl and I want to add new design, for example category2.tpl with another source code (I want to use different designs for different categories)

After that I added new Layout (Category2) and I changed categories what I want, changes are not working - all category design was design of category.tpl not Category2.tpl what I wanted ..

Where is problem? PLS help me ..

Re: two different disigns of "category list design"

Posted: Mon Jan 23, 2012 11:50 am
by alin
Hi,
You need to edit controller file also,

Code: Select all

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';
			}


Change category.tpl to your tpl

Re: two different disigns of "category list design"

Posted: Tue Jan 24, 2012 7:19 pm
by icesy
Thanks,

which controller file I need edit? and where can I post this code ? (i am beginner in OC - sorry for stupir question)

Re: two different disigns of "category list design"

Posted: Thu Jan 26, 2012 8:51 pm
by alin
icesy wrote:Thanks,

which controller file I need edit? and where can I post this code ? (i am beginner in OC - sorry for stupir question)
catalog/controller/product/category.php