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

Set default to "Exclude: On backorder"

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

I need to set the filter"" as selected by default so the visitor can unselect it to see all products.

Please help me with this.

Hello

Read  this  please - https://products-filter.com/manipulate-search-data-options/

In your  case : $request['backorder'] = 'onbackorder';

I did like:

{
add_filter('woof_get_request_data', 'my_woof_get_request_data');
}

function my_woof_get_request_data($request)
{
$request['backorder'] = 'onbackorder';
return $request;
}

But it is not possible to remove the selection of"" if the customer needs to see all products,

check here:  https://vhcyklar.se/produkt-kategori/cyklar/damcyklar/

Hello

In this case, remove this code

And  use  this link to  this  page - https://vhcyklar.se/produkt-kategori/cyklar/damcyklar/?swoof=1&backorder=onbackorder