Answer the question
In order to leave comments, you need to log in
How to check if a product exists in a woocommerce subcategory?
Hello. Tell me how I can check the availability of goods in a subcategory.
We need some analogue of the is_product_category () function.
The problem is that I have a large nesting of subcategories. And depending on whether the product is in this subcategory, I need to display navigation. But this function outputs true in all subcategories if there is a product in the parent category.
I hope I explained clearly. Thanks
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question