View price range

Highlighted
Shopify Partner
17 0 3

Hi,

I'm using the Debut theme(not sure if it matters). Currently in my product-card-grid.liquid file has this to display the price:

<div class="grid-view-item__meta">
      {% include 'product-price' %}
</div>

I would like to display the price range since some variants of the products have varying prices.

 

I came up with this solution:

<div class="grid-view-item__meta">
      {{ product.price_min | money }} - {{ product.price_max | money }}
</div>

 

I wanted to see if this is an acceptable solution or if there a better alternative or some potential gotchas to look out for?

0 Likes
Highlighted
Shopify Partner
27 0 1

up

I'm an expert Shopify developer From Rapidops.com. we love to help/support.Mail me at "jaygandhi0692@gmail.com" if you needed more help/support.
0 Likes
Highlighted
Shopify Partner
22 0 2

Hello,
if you want to show price range for each product with differents prices for variants, you can try this APP.
This app show price range for each product in all collections.
In app configuration, you can set also format for displaying price range, for example like From $5.00 to $9.99 or $5.00 - $9.99

0 Likes