K
K
Kirill Dolgopolov2015-10-30 20:41:25
WordPress
Kirill Dolgopolov, 2015-10-30 20:41:25

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

2 answer(s)
K
Kirill Dolgopolov, 2015-11-06
@kvink

I solved the issue by setting the widget "Woocommerce Product Categories"

N
Nikolay Samokhin, 2015-11-03
@thesNu

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 question

Ask a Question

731 491 924 answers to any question