I am using default theme/V1.5.4.1
To recap: Present system provides listing pages of products within categories/subcategories, from which you can select individual products to be displayed on their own page. Using a common layout structure through the system.
I have a situation where one (and only one) subcategory needs the product listing to be displayed differently. The individual products themselves can still be displayed normally.
The bulk of changes I can manage by (I believe) creating modified product/category.php and product/category.tpl files.
My problem is a lack of understanding of how to call that layout for the one sub-category.
Can anyone provide me with a little guidance on this?
in file template/product/category.tpl you can add if clause like this
this is the least editing method you can get ( i guess). other method is creating a new tpl for that category and link to that tpl using product/category.php controller (again using if else)
Code: Select all
<?php if($heading_title == "your_special_category_name") { ?>
//your custom code
<?php } else { ?>
//the orginal code
<?php } ?>
Who is online
Users browsing this forum: No registered users and 210 guests