cancel
Showing results for 
Search instead for 
Did you mean: 

How to display categories list on product page sidebar?

How to display categories list on product page sidebar?

Categories listing code in a phtml file and also add that block in xml after that not display on product page sidebar.

Please help me.
Thanks.

2 REPLIES

Re: How to display categories list on product page sidebar?

Are you looking for category list in product page ?

So you want to display all the category or the category hierarchy ?

 

Please mention what exactly you are looking for.

Suman Kar(suman.jis@gmail.com) Magento Certified Developer Plus Skype: sumanphptech If this response was helpful to you, consider giving kudos to this post

Re: How to display categories list on product page sidebar?

If you want to show the category navigation on product  page first set the product layout to two column left then add the following code in you default.xml or from admin panel if you want to do specific product  product design tab.

<referenceContainer name="sidebar.main">
        <block class="Magento\LayeredNavigation\Block\Navigation\Category" name="catalog.leftnav" before="-" template="layer/view.phtml">
        </block>
</referenceContainer>

 

Find helpful ? Consider Giving Kudos to this post.
Problem solved? Click Accept as Solution!"
Qaisar Satti