Currency Formatting Not Working with Multi-Currency

Solved

Currency Formatting Not Working with Multi-Currency

greatdane67
Tourist
8 0 3

Hi everyone

 

My currency formatting settings are set to Remove Decimals using:- "£{{amount_no_decimals}} GBP</span>" which works fine for my native store currency GBP. 

 

However when I swap currency, say to USD, using Shopify's multi currency switcher decimal places are now shown.  See attached photos.

 

I want to Remove Decimals for all currencies. Please could a Shopify Dev help resolve this? 

 

Thanks,
Lewis

 

Screenshot 2022-01-04 at 21.23.01.pngScreenshot 2022-01-04 at 21.22.49.png

Accepted Solution (1)

LitExtension
Shopify Partner
4860 1002 1157

This is an accepted solution.

Hi @greatdane67,

For Multi-Currency you need to add code change step. Please go to the file containing the code to display the price, 'price' can be found in the snippets. 

example with Dawn themeexample with Dawn theme

Then change: money => money_without_trailing_zeros , refer

Screenshot.png

Hope it helps!

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify

View solution in original post

Replies 4 (4)

LitExtension
Shopify Partner
4860 1002 1157

This is an accepted solution.

Hi @greatdane67,

For Multi-Currency you need to add code change step. Please go to the file containing the code to display the price, 'price' can be found in the snippets. 

example with Dawn themeexample with Dawn theme

Then change: money => money_without_trailing_zeros , refer

Screenshot.png

Hope it helps!

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
greatdane67
Tourist
8 0 3

Worked. Muchas gracias

MarekRipa
New Member
5 0 0

Hi,

 

I'm having the same issue but this added code not fixed the problem. Is this still working as a solution?

 

Thanks.

artgazette
Excursionist
19 1 7

Worked for me in August 2024! Thank you!

First time Shopify store owner, looking to learn. Semi comfortable with CSS.