Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Question about Products.tpl and Subcategories

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-18-2006, 04:50 PM
 
GooseCA GooseCA is offline
 

Newbie
  
Join Date: Jul 2006
Posts: 9
 

Default Question about Products.tpl and Subcategories

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
Reply With Quote
  #2  
Old 07-19-2006, 03:41 PM
 
GooseCA GooseCA is offline
 

Newbie
  
Join Date: Jul 2006
Posts: 9
 

Default

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:47 AM.

   

 
X-Cart forums © 2001-2020