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)
-   -   When Root Cat clicked display sub cat? (https://forum.x-cart.com/showthread.php?t=43052)

Victor D 10-26-2008 11:29 PM

Re: When Root Cat clicked display sub cat?
 
try to change
HTML Code:


{foreach from=$altcategories item=v}
<tr>
    <td valign="top" style="padding-left:15px;"><img src="{$ImagesDir}/category_bullet.gif" width="10" height="13" alt="" /></td>
    <td><a href="home.php?cat={$v.categoryid}" class="VertMenuItems"><font class="CategoriesList"  style="font-size:10px;">{$v.category}</font></a></td>
</tr>
{/foreach}


to
HTML Code:


{foreach from=$altcategories item=v}
<tr>
    <td valign="top" style="padding-left:15px;"><img src="{$ImagesDir}/category_bullet.gif" width="10" height="13" alt="" /></td>
    <td>{if $v.categoryid ne $current_category.categoryid }<a href="home.php?cat={$v.categoryid}" class="VertMenuItems"><font class="CategoriesList"  style="font-size:10px;">{$v.category}</font></a>{else} <font class="myactivecategory">$v.category</font>
{/if}</td>
</tr>
{/foreach}


And put myactivecategory class description in skin1.css

komarik 10-27-2008 06:31 AM

Re: When Root Cat clicked display sub cat?
 
Thank you Victor D,

It worked. Exactly what I needed.

Nikolay


All times are GMT -8. The time now is 09:45 PM.

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