I have added some javascript effects to my category list. It works great, except for a few things. What happens with the javascript - is the subcategories are displayed in the left category list when they click on a category. The links work great off the home page, but when someone gets to a subcategory page, then it falls apart a bit.
This code needs to work on any page, and it is screwed up whenever there is a ?cat=(number). Any ideas how to fix this? (this is a snippet from the /customer/categories.tpl)
Code:
{if $config.General.root_categories eq "Y"}
{foreach from=$categories item=c}
<dt class="category-menu" style="cursor: pointer">{$c.category}</dt>
{if $subcategories}
<dt class="subcategory-menu">
{foreach from=$subcategories item=c key=catid}
<a href="home.php?cat={$catid}" class="VertMenuItems"> - {$c.category}</a><br />
{/foreach}
</dt>
{/if}
{/foreach}
{else} {foreach from=$subcategories item=c key=catid}
<font class="CategoriesList"><a href="home.php?cat={$catid}" class="VertMenuItems">{$c.category}</a></font><br />
{/foreach}
{/if}