Sort collection by price of in-stock variants only

When a customer is viewing a collection filtered to show only in-stock products, and then selects to sort by price (for example price low-to-high), the products appear sorted in order of the lowest price variant of each product even if that lowest price variant is not in stock. This is very confusing. The customer filtered to show in-stock products because they are looking to make a purchase now and want to see the products in order of the cheapest variant of each product that is in-stock.

Is there an app or liquid code change that can change the sort order to be based on the lowest (or highest) price of in-stock variants? I am using Warehouse theme in case that matters.

Hi, @AncestralMTG !

Welcome to Shopify Community.

Thanks for reaching out to our network with your question. I can definitely appreciate how that may be a confusing customer experience, so let’s explore some solutions together.

I did some research for you and I found some apps that should do the trick here for you. Check out some top contenders listed below:

There are also many, many more listed on our App Store for you to check out. I recommend paying attention to customer testimonials and demos of each app to make sure you get the best fit for your needs.

Note:

If you have any app-specific questions, or require troubleshooting or assistance with set-up then reach out to the App’s Developer directly for customized assistance.

Don’t hesitate to reach back out if further questions come up.

Warm regards,