I have a UL accordion menu, with nested UL subcategories - something like this:
Code:
<ul>
<li><a href="#">Category</a></li>
<li><a href="#" class="current">Category</a>
<ul>
<li><a href="#">Sub-Category</a></li>
<li><a href="#" class="currentsub">Sub-Category</a></li>
<li><a href="#">Sub-Category</a></li>
</ul>
</li>
<li><a href="#">Category</a></li>
<li><a href="#">Category</a></li>
</ul>
It works pretty well, when on a Category page the 'current' class is applied to highlight what category the user is on. Basic stuff.
Though I can't figure out for the life of me how to do the same for subcategories... ie. have a sub-category and it's parent-category applied with a 'current' class.
I've searched the forums though can't seem to find out how. Any help or pointers would be hugely appreciated, still getting my head around x-cart.