Variant price interval product

Topic summary

A user wants to display a price range (minimum to maximum) for products with multiple variants on collection pages and other product listings, while excluding the individual product detail page. Currently, their Shopify store shows products with variant-dependent pricing, but the range isn’t visible in collection views.

Proposed Solution:

A respondent provided a Liquid code snippet to implement this functionality:

{% if product.price_varies %}
<p>From {{ product.price_min | money }} to {{ product.price_max | money }}</p>
{% else %}
<p>{{ product.price | money }}</p>
{% endif %}

This code checks if product prices vary across variants and displays the range accordingly, otherwise showing a single price. The user would need to replace existing price display code in their theme’s collection template with this snippet.

Status: Solution provided, awaiting implementation confirmation.

Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

Hello team,

I have this product, for example. Where the price depending on the variant chosen differs.

I’d like to implement, that on the page where you see the product/ in the collection or wherever else it appears (not on the page when you access the product), the minimum-maximum price range should appear.

Thank you.

https://rmfbaits.ro/collections/box-uri-rmf

Site - www.rmfbaits.ro

Pw - [email removed]

1 Like

Hi @qadesign25 ,

I hope this message finds you well.

To display the minimum and maximum prices of a Shopify product with variants, you need to modify your theme’s code where the product price appears on collection pages.

Replace the existing price display code with the following Liquid snippet:

{% if product.price_varies %}

From {{ product.price_min | money }} to {{ product.price_max | money }}

{% else %}

{{ product.price | money }}

{% endif %}

This will ensure that the price range appears wherever the product is displayed, except on the product detail page.

Let me know if you need further assistance!

Best,