View Single Post
  #1  
Old 06-28-2011, 10:09 AM
 
nickff nickff is offline
 

Senior Member
  
Join Date: Aug 2010
Posts: 132
 

Default Display Subcategories of Parent, While in Subcategory

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!
__________________
nick hoag
looking forward to the future
http://thefutureforward.com
xcart versions 4.2.x, 4.3.x, 4.4.x
Reply With Quote