Hello all
my first time on this forum.
i want my catagory page to be displayed on the front page like shop script premium .
here is the demo:
http://www.shop-script-demo.com/premium/index.php
the smarty tag code which this site used.
HTML Code:
{section name=i loop=$root_categories}
{if $smarty.section.i.index is div by 2}<tr>{/if}
<td width="1%" align="center" valign="top">
{if $root_categories[i][3] ne ""}<a href="index.php?categoryID={$root_categories[i][0]}"><img border=0 src="products_pictures/{$root_categories[i][3]}" alt="{$root_categories[i][1]|replace:'"':'"'}">{/if}
</td>
<td width="0" valign="top">
<a href="index.php?categoryID={$root_categories[i][0]}" class="cat">{$root_categories[i][1]}</a> <font class="olive">({$root_categories[i][2]})</font><br>
{* show sub categories *}
{assign var="tmp" value=0}
{section name=j loop=$root_categories_subs}
{if $root_categories_subs[j][3] == $root_categories[i][0]}
{if $tmp == 1}<font class="olive">|</font>
{else}
{assign var="tmp" value=1}
{/if}
<a href="index.php?categoryID={$root_categories_subs[j][0]}" class=standard>{$root_categories_subs[j][1]}</a>
{/if}
{/section}
</td>
{if ($smarty.section.i.index+1) is div by 2}</tr>{/if}
{/section}
</table>
is the any way we can do the same with x-cart?