Hi, i am trying to remove the decimal “.00” from my converted prices, first of all, i have changed the {{ amount }} to {{ amount_no_decimals }}, so it worked perfectly with the default currency.
So what i did is, i added the remove filter to the price tag, {{ 25000 | money | remove ‘.00’ }}, also it is working normally with the default currency, but when i change the currency it remains 250.00.
So any idea what can i do to remove the ‘.00’ from the converted prices?
Thank you for your reply, and that’s what i did and mentioned in my post, it works with the default currency, but when i switch the currency, i still have “.00”.
No, i am not using Shopify’s multiple currency feature and when i switch to another currency it doesn’t change the URL to have a country code in it. And thank you for sharing the code snippet
Your script works, but when I change variant on the product page, the price displays the decimals again (the script doesn’t load again for the new url of the new selected variant).