PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Parent category count error

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

We have a problem with the filter count in our page.

https://ibb.co/crHWFXZ

As you can see in the screenshot when you have a category selected, the count of the parent filters is zero even though the children one's say that there are products in that category.

So we can't hide the categories that are empty because all of them are hiding due to this problem.

The filtering logic is set to"AND".

Any way we can solve this?

Thank you

Hello

If a category is not marked throughout the hierarchy for products, this is absolutely correct behavior.  Because in fact you do not have products in which it is marked -"Cuidado  corporal" AND"Detox"

If you want to change this behavior,  in  file - \wp-content\plugins\woocommerce-products-filter\index.php - change  this  code - https://share.pluginus.net/image/i20211110134621.png