Shopify themes, liquid, logos, and UX
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
Solved! Go to the solution
This is an accepted solution.
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
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
This is an accepted solution.
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
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025