Making it show the "from price on collection pages in stock prices

Is there a way to make it show that the “from” price is showing the instock price and not the lowest possible price of all variants including the out of stock ones. i have photos below as an example. its quite frustrating for my customers who think a card is way cheaper than it actually is. the example below it should show “from” at 0.78 not 0.55

I am using the refresh theme version 12.0

@DFTGames it will need code editing where lowest variant price needs to be shown to the user. Please check your price.liquid section and check from where the price is been shown, and need to edit that to {{ product.price_min }}

if you find it difficult then I can check it for you, I will need collab code to request access

There is no setting in Shopify admin to change this behavior. You must customize the theme code to exclude out-of-stock variants when calculating the “From” price. Do you know how to do thst?

Hi @DFTGames

Yes — Shopify’s default “From” price uses the lowest variant price, even if that variant is out of stock. That’s why customers see a cheaper price than what’s actually available.

In the Refresh theme, this can be fixed by updating the price logic to use the lowest in-stock variant price instead of product.price_min. It’s a small Liquid change in the price/card snippet and doesn’t require any apps.

After the change, the “From” price will correctly show 0.78 instead of 0.55 when the cheaper variant is out of stock.

Best regards,
Devcoder :laptop:

You can’t do that without code edit.

I’d start with this – search for this code:

And replace it with this:

  assign avs = product.variants | where: 'available' | sort: 'price'
  assign price_min = avs.first.price
  assign price_max = avs.last.price
  unless use_variant
    assign price = price_min
  endunless

Instead of min and max prices among all variants, it will use prices of cheapest and priciest available variants.

May need to also address the compare_at prices and price_varies property, but that’s significantly more edits, probably not needed.

Created an account just to say that this solved a similar issue that I was having. Using the Dawn theme, my issue was that my products with variants showed “From $0” instead of any pricing logic against available variants. Thank you for this!