Answer the question
In order to leave comments, you need to log in
Woocommerce how to display only the category the user is in?
Hello. I have an online store based on Word Press, Woocommerce plugin.
The main page displays a product catalog, which contains categories and subcategories. Subcategories are hidden and are only displayed when the user selects the category of interest.
How can I make it so that when a user enters any category of a product, all other categories are hidden and only the category in which he is located and the subcategories that belong to this category remain?
Answer the question
In order to leave comments, you need to log in
I solved the issue by setting the widget "Woocommerce Product Categories"
In general, such a scheme described by you comes out of the box.
In case you changed the settings:
1) Go to WooCommerce -> Products -> Display
in the admin area
2) Specify - On the shop page -> Show categories & subcategories (I don't know why this translation, but it only displays the category, as you need )
3) Specify - On the category page - Show both options
4) Save changes
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question