Post by icesy » Mon Jan 23, 2012 7:06 am

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 ..

Newbie

Posts

Joined
Tue Dec 21, 2010 9:38 am

Post by alin » Mon Jan 23, 2012 11:50 am

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

GOLDEN LEOPARD SYSTEM SOLUTION
An ICT System Solution Company in Vietnam
Website: Store: http://opencart.goleo.vn or http://www.opencart.com/index.php?route ... rname=alin


User avatar
Active Member

Posts

Joined
Fri Jun 10, 2011 8:16 pm

Post by icesy » Tue Jan 24, 2012 7:19 pm

Thanks,

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

Newbie

Posts

Joined
Tue Dec 21, 2010 9:38 am

Post by alin » Thu Jan 26, 2012 8:51 pm

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

GOLDEN LEOPARD SYSTEM SOLUTION
An ICT System Solution Company in Vietnam
Website: Store: http://opencart.goleo.vn or http://www.opencart.com/index.php?route ... rname=alin


User avatar
Active Member

Posts

Joined
Fri Jun 10, 2011 8:16 pm
Who is online

Users browsing this forum: No registered users and 7 guests