| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Question about Products.tpl and Subcategories | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Suppose I want to list products by subcategory in home.php?cat=category. For each subcategory, I want it to have a different title. Is there an element in the $products array that shows the subcategory id? Everytime I use $subcat.categoryid , it gives me the first subcategory for the main category. Any help would be much appreciated. Also is there a page that lists all the elements of each array that x-cart uses?
__________________
Version 4.0.9 |
|||||||
#2
|
|||||||
|
|||||||
![]() Okay after researching a bit, I understand smarty templates a little better, but still can't find an answer to my problem. Maybe it'd be better if I gave a better description of what I want. Currently, when you access the main category say home.php?cat=249 , it displays all the products that belong to that category. What I want to do is display those products by their subcategories and have a header for each subcategory. Is there any conceivable way to do this? For a better idea of what I want, you can view a standard html page here: http://www.eyeseedesigns.com/intercage/ded-amd.html . Thanks again, all help is appreciated.
__________________
Version 4.0.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|