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)
-   -   display catagory (https://forum.x-cart.com/showthread.php?t=36017)

uighur 12-08-2007 01:53 AM

display catagory
 
1 Attachment(s)
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:'"':'&quot;'}">{/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?

chamberinternet 12-08-2007 02:22 AM

Re: display catagory
 
This might help:

http://www.websitecm.com/x-cart-mods/x-cart-seo-category-map.html

Regards

Shafiq

uighur 12-08-2007 12:43 PM

Re: display catagory
 
Is there any one else know how to do ?


All times are GMT -8. The time now is 07:33 PM.

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