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

Show 'In Stock products only' by default on load, but let user uncheck the In stock checkbox to see Out of Stock products/variations

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, when using the 'In Stock products only' snippet from the Help page, the In stock checkbox is checked on page load, as expected.
Problem: It's impossible to uncheck the In stock checkbox. On every page load, it's checked.
We need the user be able to use the In stock checkbox. Could you help please?
Thanks!

Hello

Then remove this custom code

Use a  link  to  this  page. Example: https://this_page.com/?swoof=1&stock=instock

Thanks for your reply!

As the website has a lot of links and menus to the Shop Pages and Product Category pages, and Editor Users may add new links at any time, so I use this function to append the url parameter.

// Show 'In Stock products only' by default on Shop Pages

jQuery('#wrapper a[href^="https://example.com.br/shop/"]').each(function() {
var $this = jQuery(this);
var _href = $this.attr('href');
$this.attr('href', _href + '?swoof=1&stock=instock');
});

Ok for you?

Hello

Yes. it should work