Hi All,
I've made a dropdown menu at the top of my category pages in a 4.4.3 store that lists the subcategories in that category, like so:
HTML Code:
<select class="gender-select" onchange="if(this.options[this.selectedIndex].value != '')window.top.location.href=this.options[this.selectedIndex].value">
<option value="Select A Gender">mens/womens/youth</option>
{foreach from=$categories item=subcat name=subcategories}
<option value="home.php?cat={$subcat.categoryid}">{$subcat.category|escape}</option>
{/foreach}
</select>
I would like this dropdown menu to be visible and function even after you go into a subcategory. Currently, it shows on the parent category page correctly, but then when you go into a subcategory the selections are no longer in the menu.
http://future.thefutureforward.com/~aso/Snow/
I think I need an if statement in there that grabs the parent's subcats when in a subcat, but I'm not sure how to do it.
Any help is much appreciated!