Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi, There are so many community posts event in the Shopify cheat sheet explain how to use
<h2>price_min:{{ product.price_min }} || price_max:{{ product.price_max }} || price:{{ product.price }} || price_varies: {{ product.price_varies }}</h2>
I'm wondering how I can set price_varies to true.
Please help...
Solved! Go to the solution
This is an accepted solution.
price_varies is a value you get from the liquid product object, not a value you set. You can find the documentation about product.price_varies here.
As the documentation states, {{ product.price_varies }} returns true if the product's variant prices vary. Returns false if not.
If you want price_varies to be true, then the product needs to have multiple variants with different prices.
This is an accepted solution.
price_varies is a value you get from the liquid product object, not a value you set. You can find the documentation about product.price_varies here.
As the documentation states, {{ product.price_varies }} returns true if the product's variant prices vary. Returns false if not.
If you want price_varies to be true, then the product needs to have multiple variants with different prices.
Hi @MaxDesign
Thanks for your quick response.
Request you to refer the below product JSON
https://shoponcliq.com/products/personalized-blue-whale-slim-phone-case-cover.json
Which has multiple variants but still missing the price_varies field missing.
You need to access the price_varies value with javascript? In that case you could parse it from a script tag, for instance:
<script type="application/json">
{{ product | json }}
</script>
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025