Variant price interval product

Variant price interval product

qadesign25
Tourist
11 0 4

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.

 

Screenshot 2025-03-17 at 21.36.20.png

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

 

Site - www.rmfbaits.ro

Pw - rmf2025@!

Reply 1 (1)

Dotsquares
Shopify Partner
375 22 51

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 %}
<p>From {{ product.price_min | money }} to {{ product.price_max | money }}</p>
{% else %}
<p>{{ product.price | money }}</p>
{% 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,

Dotsquares Ltd


Problem Solved? ✔ Accept and Like solution to help future merchants.


Shopify Partner Directory | Trustpilot | Portfolio