Hello,
I tried following code to list subcategories in horizontal instead vertical.
Code:
{if $subcategories}
<TABLE border="0" cellspacing="5" width="100%">
{foreach from=$subcategories item=subcat}
<Td>
{if $tmp and $first_subcat ne "Y"}
<TD valign="top" rowspan="{count value=$subcategories print="Y"}">[img]{if $current_category.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/icon.php?categoryid={$cat}{/if}[/img]</TD>
{assign var="first_subcat" value="Y"}
{/if}
<TD align="left" width="95%">
<FONT class="ItemsList">{ $subcat.category|escape }</FONT>
</TD>
<TD align="left" nowrap><FONT class="Text">{if $config.Appearance.count_products eq "Y"}
{if $subcat.product_count}{ $subcat.product_count } {$lng.lbl_products}
{elseif $subcat.subcategory_count}{ $subcat.subcategory_count } {$lng.lbl_categories|lower}
{/if}
{/if}</FONT></TD>
</Td>
{/foreach}
</TABLE>
{/if}
It does show it them horizontal, only thing I am not able to figure out is -
Category 1-----space----- category 2-----category 3-----category 4
It shows lot of space between category 1 and category 2.
Any Idea how to fix it? thanks