Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Filter drop down box - How show all sub and subsub categories
 
c509
Member
 
Total Posts:  34
Joined:  2009-08-12
 

Hi out there,

i have the filter box with drop down menuOnce choosen the selection will filter the products.
The code looks like this:

<select name="magestp" id="magestp" onChange="magejump('parent',this,0)">
<?php foreach ($this->getItems() as $_item): ?>
<option value="<?php echo $this->urlEscape($_item->getUrl()) ?>"><?php echo $_item->getLabel(); ?> (<?php echo $_item->getCount() ?>)</option>
<?php endforeach ?>
</select>

What i would like to do is showing all categories and sub categories.
As the code above is used for every (not only categories) drop downs, it seems i cannot do something like:

$_item->getItems()
and so on.

Greetings,
c509

Any solution?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top