how to change variant price from min to max

i have 2 variant one is costing 1.50 and another 17.99 how to change the price from 1.50 to showing on my site 17.99

Hi @Berra ,

I believe you are talking about product grid on the colleciton page. This needs to be done on the theme level. Can you let me know which theme you are using? And also provide link to your store?

If you are using free theme from shopify I can help you make this changes on the theme.

i am using sense theme and my site is berra.lt and you can se its saying nuo 1.50

Hi @Berra ,

I have written custom code to get this done. To do this you will have to edit price.liquid.

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find price.liquid file

  4. Add the below code on line no 42[Screenshot attached below]

{%- liquid
   assign price_max = product.price_max
  if target == product and product.price_varies
    assign money_price = price_max | money
    assign compare_at_price = target.compare_at_price_max
    assign show_compare_at_price = false
    if settings.currency_code_enabled
      assign money_price = price_max | money_with_currency   
    endif
  endif
-%}

Note: Please take backup of the original file so that you can revert the changes.

If you need any help adding this code on the site, you can let me know.

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

Best Regards,
Makka

Thank you

1 Like