When I click on the parent category 'shoes' I am able to filter by sub categories within the parent category ('shoes') only. I would like to see all categories and sub-categories in the sidebar.
Can anyone please assist with a solution to displaying all categories in the sidebar of my Magento store?
Best Answer
Add the below code in your theme’s catalog XML file like this:
It should be placed inside the reference name “left“, to show it in the left sidebar. I hope you know all these stuffs. Let’s get to the point. Just copy and paste the code in the
my_left_nav.phtml
, which should be in your theme’scatalog/navigation
folder.Hope it will help you.