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

WOOF: DOesn't show products count for active/selected filters

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.

Why do this plugin not shows any count for the filters/attributes selected? Please find this image to see what I mean:

Hello

yes it works correctly, the counter is not displayed for the selected element

Is there any way ( any filter or action hook ) which may help to show it for the selected items also?

Hello

Unfortunately no.

But you can customize the code. In  file  - wp-content\plugins\woocommerce-products-filter\views\html_types\checkbox.php - delete this  code  - https://share.pluginus.net/image/i20230706114017.png

 

Before  showing attributes list and their count in the sidebar, I need to refine the list. How I can do it? I used"woof_dynamic_count_attr" filter and it helped but now I need more advanced filters which I can use to make some changes in the MYSQL query directly ( EG:"posts_where" and"posts_clauses" ). In WordPress default solutions, these filters"posts_where" and"posts_clauses" work very well but don't work with your queries so need a solution for this one.

The same apply to final searched products as well so that I can apply some MYSQL query filters before showing on the search results screen.

Hello

We use WP_Query.  So "posts_where" and"posts_clauses"  this also works for filter queries