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

Checkbox in selected state by default

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 Pablo,

Is there a way for:

  1.  A checkbox to be in the selected state by default, so the shop page is always loaded with that specific filter on?
  2. A checkbox to be always on, so it can't be unselected?

Thank you in advance,

Kind regards from Brazil

hello

Yes. Please  read  this  - https://products-filter.com/manipulate-search-data-options

Hi, thank you for the link, it solved half the problem.

I'm still trying to find smart ways to work with ACF fields and your plugin. I have some fields that would better be used with a checkbox on the front end of the filter (when is a yes/no question, for example; it's easier for the UX to just check when it's yes and leave it unchecked when no, other than to open a list to search for yes/no answers). But when I set for that option (checkbox), the plugin will search for the existence of the field itself not for it's value, then all products will show up in the results because all of them have the field. That's what happens when I use your code to create a default filtering.

So here's two lines of investigation for a solution:

  1. Is it possible to manipulate data in a way to show only a specific value for a checkbox instead of calling all products with that field?

    And, in the impossibility of that,

  2. Is it possible to manipulate data in a way to create a filter that is not shown along the others, set on and off manually by code, or (even better) triggered by another field's trigger?

Thank you in advance,

Hello

Ok! Checkbox - In the settings you can write the value by which the filtering will be - https://c2n.me/4hXbLXy.png

to hide  field - https://c2n.me/4hXbS5F.png