
balvit@gmail.com(@balvit-gmail-com)
9 Posts
Customers
Quote from balvit@gmail.com on December 2, 2023, 23:07
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
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

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on December 4, 2023, 13:38
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 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/

balvit@gmail.com(@balvit-gmail-com)
9 PostsTopic Author
Customers
Quote from balvit@gmail.com on December 4, 2023, 15:40
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 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

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on December 5, 2023, 12:59
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
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

balvit@gmail.com(@balvit-gmail-com)
9 PostsTopic Author
Customers
Quote from balvit@gmail.com on December 5, 2023, 15:33
it works well, thank you!
it works well, thank you!

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on December 6, 2023, 12:11
Hello
Welcome;)
Hello
Welcome;)