3
votes

I have 2 products categories in my Magento admin. Category one, has 5 products and category 2 has 8 products.

What I'd really like to do, is to have a menu, that displays both categories and then a drop down menu, that displays the products in each category.

Is this possible? I've looked everywhere but found no real examples

2
If you edit your question to contain the code that you tried, you'll probably have a little more luck.Joe Mastey

2 Answers

1
votes

I think it is possible but you would have to implement this yourself if you can find no examples :).

Suggestion:
You could maybe extend/override the function Mage_Catalog_Block_Navigation->_renderCategoryMenuItemHtml to render its products in the dropdown menu instead of its subcategories.

1
votes

I used the call to:

 $newCarCollection = Mage::getModel('catalog/category')->load(CATEGORY_ID);
 $newCarCollection = $newCarCollection->getProductCollection();

Then looped through the ids. Was pretty simple but effective

Thanks all for looking