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

Category tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-23-2003, 07:53 PM
 
Anonymous Anonymous is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 222
 

Default Category tpl

How can I alter the customer/category.tpl as such that each category resides in an individual row instead of cramming all the categories into one cell ?
Reply With Quote
  #2  
Old 04-24-2003, 02:13 AM
 
Anonymous Anonymous is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 222
 

Default

I've been trying to resolve this by adding table tags to the root category loop but it still doesnt work. Any ideas ?

Code:
{* $Id: categories.tpl,v 1.16 2002/10/21 07:06:43 zorg Exp $ *} <TABLE border=0 cellPadding=5 cellSpacing=0 width=100%> <TR> <TD class=VertMenuTitle height=26 width=26 valign=center>[img]{$ImagesDir}/dingbats_categorie.gif[/img]</TD> <TD class=VertMenuTitle height=26 valign=center width="80%"><FONT class=VertMenuTitle>{$lng.lbl_categories}</FONT></TD> </TR> <tr><td colspan=2 nowrap> {if $config.General.root_categories eq "Y"} {section name=cat_num loop=$categories} <tr><td colspan=2 nowrap> <font class=CategoriesList>{ $categories[cat_num].category|escape }</font> <td><tr> {/section} {else} {section name=cat_num loop=$subcategories} <font class=CategoriesList>{ $subcategories[cat_num].category|escape }</font> {/section} {/if} </td></tr> </TABLE>
Reply With Quote
  #3  
Old 04-24-2003, 04:05 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

Code:
{* $Id: categories.tpl,v 1.16 2002/10/21 07:06:43 zorg Exp $ *} <TABLE border=0 cellPadding=5 cellSpacing=0 width=100%> <TR> <TD class=VertMenuTitle height=26 width=26 valign=center>[img]{$ImagesDir}/dingbats_categorie.gif[/img]</TD> <TD class=VertMenuTitle height=26 valign=center width="80%"><FONT class=VertMenuTitle>{$lng.lbl_categories}</FONT></TD> </TR> {if $config.General.root_categories eq "Y"} {section name=cat_num loop=$categories} <tr> <td colspan=2 nowrap> <font class=CategoriesList>{ $categories[cat_num].category|escape }</font> </td> </tr> {/section} {else} {section name=cat_num loop=$subcategories} <tr> <td colspan=2 nowrap> <font class=CategoriesList>{ $subcategories[cat_num].category|escape }</font> </td> </tr> {/section} {/if} </td></tr> </TABLE>

hth
__________________
ex x-cart guru
Reply With Quote
  #4  
Old 04-24-2003, 07:09 PM
 
Anonymous Anonymous is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 222
 

Default

It worked , Thanks alot funk !! Appreciate your help !
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 07:27 PM.

   

 
X-Cart forums © 2001-2020