Jump to content

How to show currency "USD" across the site


jeremisiron

Recommended Posts

My shop will use USD only, but I need to make that visible to users. How do I make it show on the product pages, and in the shopping cart?

It could either show as "US$ 100" or "$100 USD".

I saw another thread talk about handling this with localization. I tried editing /shop/localization/us.xml to change the sign to "$" to "US$" but that didn't change anything. Do I need to re-compile the code or something? What can I do?

Thanks for any help you can offer.

Link to comment
Share on other sites

Hi, are you using 1.7.6? What do you mean you need to make that visible to others? You can specify the available currencies. If you don't see any prices at all, then you're in catalog Mode. However, if you want to change the symbol used for usd, then that is an easy task. 

Edited by jetway (see edit history)
Link to comment
Share on other sites

 

4 minutes ago, jetway said:

Hi, are you using 1.7.6? What do you mean you need to make that visible to others? You can specify the available currencies. If you don't see any prices at all, then you're in catalog Mode. However, if you want to change the symbol used for usd, then that is an easy task. 

Thanks for responding. I'm using 1.7.6. It just shows $100 without mentioning which currency it is. It's not catalog mode, since it is showing prices.

Link to comment
Share on other sites

Ahh ok, thats simple. Do following. Go to public_html -> localization -> CLDR -> core -> common -> main ->  open language.xml.

 

Go to 

    <currency type="USD">
                <displayName>US Dollar</displayName>
                <displayName count="one">US dollar</displayName>
                <displayName count="other">US dollars</displayName>
                <symbol>$</symbol>

Change the Symbol above

then go to and change the decimal symbol and the pattern to whatever you want.

<numbers>
        <symbols numberSystem="latn">
            <decimal>.</decimal>
            <group>,</group>
            <list>;</list>
            <percentSign>%</percentSign>
            <plusSign>+</plusSign>
            <minusSign>-</minusSign>
            <exponential>E</exponential>
            <superscriptingExponent>×</superscriptingExponent>
            <perMille>‰</perMille>
            <infinity>∞</infinity>
            <nan>NaN</nan>
        </symbols>
        <decimalFormats numberSystem="latn">
            <decimalFormatLength>
                <decimalFormat>
                    <pattern>#,##0.###</pattern>
                </decimalFormat>

 

    <currencyFormats numberSystem="latn">
            <currencyFormatLength>
                <currencyFormat type="standard">
                    <pattern>¤ #,##0.00</pattern>
                </currencyFormat>
                <currencyFormat type="accounting">
                    <pattern>¤ #,##0.00</pattern>
                </currencyFormat>

 

done.

dont forget to clear you cache after done.

Edited by jetway (see edit history)
Link to comment
Share on other sites

31 minutes ago, jetway said:

Ahh ok, thats simple. Do following. Go to public_html -> localization -> CLDR -> core -> common -> main ->  open language.xml.

 

Go to 

    <currency type="USD">
                <displayName>US Dollar</displayName>
                <displayName count="one">US dollar</displayName>
                <displayName count="other">US dollars</displayName>
                <symbol>$</symbol>

Change the Symbol above

then go to and change the decimal symbol and the pattern to whatever you want.

<numbers>
        <symbols numberSystem="latn">
            <decimal>.</decimal>
            <group>,</group>
            <list>;</list>
            <percentSign>%</percentSign>
            <plusSign>+</plusSign>
            <minusSign>-</minusSign>
            <exponential>E</exponential>
            <superscriptingExponent>×</superscriptingExponent>
            <perMille>‰</perMille>
            <infinity>∞</infinity>
            <nan>NaN</nan>
        </symbols>
        <decimalFormats numberSystem="latn">
            <decimalFormatLength>
                <decimalFormat>
                    <pattern>#,##0.###</pattern>
                </decimalFormat>

 

done.

dont forget to clear you cache after done.

Hmm I changed localization/CLDR/core/common/main/en.xml to:

            <currency type="USD">
                <displayName>US Dollar</displayName>
                <displayName count="one">US dollar</displayName>
                <displayName count="other">US dollars</displayName>
                <symbol>US$</symbol>
            </currency>

...

 

                <decimalFormat>
                    <pattern>#,##0.### USD</pattern>
                </decimalFormat>

Then I went to Advanced Parameters > Performance and pressed Clear cache.

Then I refreshed the user view in the Cart and it hadn't changed anything. Did I do something wrong?

Do I also need to edit en_US.xml and en_CA.xml? I changed those and it had no effect as well. Any other ideas?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...