Display out of stock products at the end of the results
- mcl7Participant2 years, 10 months ago #28322
I am trying to display the out-of-stock products at the end of the results. This seems to be a fairly common request by woocommerce users but I cannot seem to get any of the solutions to work.
Here is a good thread with several options (the more recent are recommended as its a kind of an old thread):
https://stackoverflow.com/questions/25113581/show-out-of-stock-products-at-the-end-in-woocommerce
Then there is a snippet on businessbloomer who usually has good snippets:
https://www.businessbloomer.com/woocommerce-show-in-stock-products-first-shop/Lastly, another example on Stackoverflow:
https://stackoverflow.com/questions/67835257/display-out-of-stock-products-last-even-after-sort-woocommerceI was thinking that WPsolr or Algolia is the reason none of the above work.
Any ideas?
You must be logged in to reply to this topic.