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,