View Single Post
  #1  
Old 12-28-2006, 10:28 PM
 
Local Hero Local Hero is offline
 

Senior Member
  
Join Date: May 2004
Location: UT
Posts: 121
 

Default Catagory layout with products (almost there)

I know this question has been asked a bunch,

I want to slide my products inbetween each catagory. For instance:
T-Shirts
Standard T-Shirt
Kids Shirt
Long Sleeve

Jackets
Hooded
Full Zipper

I've been playing with the customer/catagories.tpl and I can get it to show the products in the box but only when I have already selected the catagory. I want it to always display all the products. I know this can be hard coded, but I was looking for a dynamic solution. Can anyone see where my code could be changed to do this? Thanks.

____X-Cart's code to display catagories_____
{if $config.General.root_categories eq "Y"}
{section name=cat_num loop=$categories}
<FONT class="CategoriesList"><A href="home.php?cat={$categories[cat_num].categoryid}" class="VertMenuItems">{$categories[cat_num].category}</A></FONT><br>
{/section}

_____I added below it_____
<br>{section name=product loop=$products}
<A href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}" class="ProductTitle">{$products[product].product}</A><BR>
__________________
X-Cart version 4.4.5
X-Cart version 5.3.2.8
Reply With Quote