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

invert checkbox filter

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.

Hi there,
I was wondering if it's possible to invert the behavior of checkbox filters?

My problem is, I have"in stock?" check box, but I need it to show only out of stock products.

Any help would be appreciated,
Thanks in advance.

Hello

Unfortunately, the plugin does not have such a feature.

You can try  change code  in  file - \wp-content\plugins\woocommerce-products-filter\ext\by_instock\index.php  - delete  this  code - https://c2n.me/47TNjYj.png

Thanks for your reply @pavlo_borysenco.

Instead of changing plugin files directly, I added another filter to the page which changes the state of"in stock?" checkbox on change in inverse and hide the original filter using JavaScript; which works fine for me.

That being said, having the option to invert the checkbox filters through a community addon or a built-in feature would be nice.

Hello

Ok!  Great