How do I display price of the first variant of the product?

Hello,

Right now in my card-product.liquid the price that it shows is the max price of all the variant (as shown).

I want to edit it to show the price of the 1st variant of my product.

The website is : https://amore-azzare.com/

Thanks in advance!

1 Like

Hello @AmoreAzzare ,

To implement the desired functionality, please add the following code snippet to your template and verify if it meets your requirements:

{% if product.price %}
  {% assign firstVariant = product.variants.first %}
  {{ firstVariant.price | money }}
{% endif %}