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 ..
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 ..
Hi,
You need to edit controller file also,
Change category.tpl to your tpl
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
catalog/controller/product/category.phpicesy wrote:Thanks,
which controller file I need edit? and where can I post this code ? (i am beginner in OC - sorry for stupir question)
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
Who is online
Users browsing this forum: No registered users and 19 guests