Instead of categories I would like products to appear in the drop-down navigation menu similar to lowes.com. Is this possible? I am not paying for anything either 🙂
I’ve attempted to alter core/Mage/Catalog/Block/Navigation.php and try to ‘fake’ products as categories but the object requirement is very specific. Since the function to create the menu is recursive it will only work on actual categories and nothing else. Any ideas?
I know another option is to create 2nd level categories and name them as my products and then do a rewrite in .htaccess but this is not dynamic and very messy.
After a bit of experimenting I’ve got this working! Below is the new code to use in
app/code/core/Mage/Catalog/Block/Navigation.phpfunction _renderCategoryMenuItemHtml(swap ‘local’ for ‘core’ if localizing)Basically there are two new added sections. The first section builds the product collection to get relevant info (name, url, etc). The second section appends the new unordered list inside the existing root category list items. Hope this helps someone. Now you don’t need to pay $99 for the extension that is out there 🙂
Tested on v.1.6.1