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

Displaying out of stock products at the End of the List

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.

Dear support team,

I would like to ensure that products which are out of stock are displayed at the end of product lists, after all available items.

Could you please guide me if there is an existing setting within the plugin that allows this, or if there is a recommended snippet of code that could achieve this functionality?

Thank you for your time and support.

Best regards,

Vitaly

Hello Vitaly

This filter does not affect product sorting.

you should look for third party solutions - https://wordpress.org/support/topic/show-out-of-stock-items-at-the-end-bottom/

Hello Pablo

Thanks for getting back to me so quickly and for the suggestion. Just a heads-up, our site uses AJAX for flipping through pages. We've noticed that the 'Out of Stock' items don't stay at the end when we move to a new page using this method.

Any ideas on how to fix this? If there's another trick or setting we can tweak, that would be awesome. Really appreciate your help on this!

Cheers,

Vitaly

Hello Vitaly

Have you used this snippet? - https://share.pluginus.net/image/i20231205125547.png

If yes then you should pay attention to these conditions - https://share.pluginus.net/image/i20231205125720.png - These conditions do not work in an ajax request

it works well, thank you!

Hello

Welcome;)