Shopify themes, liquid, logos, and UX
Hi,
How can I remove the decimals on the product price? It worked only on the main currency (CHF) but not on the other currencies for the other markets like Euro or US Dollar.
Happy if you can help me 🙂
Thank you, Jan
@Jan7777 do you have price.liquid file where you have product.price??? are you familiar with the liquid code?
Yes I have a price.liquid file
@Jan7777 - please check currency formatting options in settings , check if decimals are added from it, you can refer to this link
@suyash1 thank you, but this I have already done (you see the Swiss Frank is without decimals, as this is my main currency) my question is, how to have no decimals on other currencies like us dollar, euro, Yen, etc
In this link you can not adjust it and it is still showing with decimals. thank you very much for advise
@Jan7777 then try making price without trailing zeroes, in the price.liquid, line 25, after default 1999, add this to check
| money_without_trailing_zeros
No, did not work, this set everything to zero, so full price is zero
@Jan7777 - can you give screenshot of that line?
@TerenceKEANE do you have maybe a solution ? You have been recommended by another user 🙂
Hi!
I’m sure you’ve seen that I’ve helped many people here. 😊
Yes, we can solve this issue. I’ll need to write some custom JavaScript code. If you have a Shopify Plus subscription, we can implement this across all pages. If you're using standard Shopify, we can do it on all pages except the checkout page. There may be a small cost involved! I’m sharing some examples below. If you're interested, feel free to reach out via private message or through my signature.
Take care..
before
after
many thanks, but we solved it already in the meantime. all the best
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024