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

Catagory layout with products (almost there)

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 12-29-2006, 03:01 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Catagory layout with products (almost there)

Moving to Template Editing.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-19-2007, 05:58 PM
 
brickholio brickholio is offline
 

Member
  
Join Date: Mar 2007
Posts: 14
 

Default 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
__________________
4.1.6
Reply With Quote
  #4  
Old 03-19-2007, 08:57 PM
 
Local Hero Local Hero is offline
 

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

Default Re: Catagory layout with products (almost there)

I never got a response so I had to go with another layout
__________________
X-Cart version 4.4.5
X-Cart version 5.3.2.8
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 08:52 AM.

   

 
X-Cart forums © 2001-2020