X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Catagory layout with products (almost there) (https://forum.x-cart.com/showthread.php?t=27655)

Local Hero 12-28-2006 10:28 PM

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>

balinor 12-29-2006 03:01 AM

Re: Catagory layout with products (almost there)
 
Moving to Template Editing.

brickholio 03-19-2007 05:58 PM

Re: Catagory layout with products (almost there)
 
Quote:

Originally Posted by Local Hero
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>


Any update on this? Can we see a sample?

matt

Local Hero 03-19-2007 08:57 PM

Re: Catagory layout with products (almost there)
 
I never got a response so I had to go with another layout


All times are GMT -8. The time now is 06:36 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.