I am trying to display a ‘products’ menu item in my top menu then have all the subcategories displayed underneath it in a dropdown.
I am looking at the code in the top.phtml file and I just can’t figure out how to configure it to display the root category with all categories underneath it.
This is the current code that pulls the categories and subcategories:
<?php foreach ($this->getStoreCategories() as $_category): ?>
<?php echo $this->drawItem($_category) ?>
<?php endforeach ?>
Anyone have an idea of how I can display only the root category as a menu item (ie: "Products") then display all the subcategories (and their subcategories) beneath it?
Thanks.
2 answers
Perhaps the following video tutorial may help? . . . .
Here are some additional turorial resources that may be helpful as well.
Thanks for the reply, but unfortunately not what I needed.
I found a workaround by just nesting everything in a parent category instead of the root category.
This question is now closed