Supply theme - how to change the variant price shown from minimum to maximum

Elizabeth_Ward
Tourist
25 0 3

I have customers visiting who expect to pay the price they see, which is the price for the smallest size.  Prices vary with size.  Since there is far more demand for larger sizes, I would rather have the maximum price showing.  How can I do this?

0 Likes
Alex135
Astronaut
1889 1 462

Open Snippets/product-grid-item.liquid.  Look for:

        {% include 'price' with product.price %}

Change it to:

        {% include 'price' with product.price_max %}

I hope this helps. 

Elizabeth_Ward
Tourist
25 0 3

It did!  Many thanks.

0 Likes
MinuSak
Excursionist
28 0 9

hello..

I used this code and changed the code to display price of first variant. It works, but there is issue with search result.

In search result products, it is displaying only the lowest price. Can you please help me solve this.

Thanks in advance

 

0 Likes