Home » Topic » Technical and configuration issues » New features requests » Display out of stock products at the end of the results
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):
Then there is a snippet on businessbloomer who usually has good snippets:
Lastly, another example on Stackoverflow:
I was thinking that WPsolr or Algolia is the reason none of the above work.
You can simply index field stock_status in screen 2.2, then select it as default sort in screen 2.5. Use relevancy as secondary sort for instance.
You must be logged in to reply to this topic.