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)
-   -   Category tpl (https://forum.x-cart.com/showthread.php?t=2424)

Anonymous 04-23-2003 07:53 PM

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 ?

Anonymous 04-24-2003 02:13 AM

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>


funkydunk 04-24-2003 04:05 AM

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

Anonymous 04-24-2003 07:09 PM

It worked :o , Thanks alot funk !! Appreciate your help !


All times are GMT -8. The time now is 05:47 PM.

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