Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Switch off the currency name display in prices
 
uni-man
Member
 
Total Posts:  34
Joined:  2008-04-04
 

Hi

Prices are currently displayed as $NZ 123.45 (or whatever). I’d like to hide the “NZ” bit and just see $123.45

I’m building a site for use in New Zealand only: in the Currency Settings I have selected
Allowed Currencies: New Zealand Dollar
(only)

Default Display Currency: New Zealand Dollar
Base Currency: New Zealand Dollar

Any idea how to turn off the currency name display?

thanks

 Signature 

http://www.unicycle.co.nz

 
Magento Community Magento Community
Magento Community
Magento Community
 
uni-man
Member
 
Total Posts:  34
Joined:  2008-04-04
 

Figured it out at last:

I had been using the English (Australia) locale in both the frontend (System ? Configuration > General > Locale Options) and admin (lower right corner)

So I copied the en_AU folder in app/locale and pasted it as en_NZ
then edited etc/config.xml
and added the line
<en_NZ/><!-- English (New Zealand) -->
under the en_AU line

selected the English (New Zealand) locale in both admin and public, and now the currency code is no longer visible.

Varien: is it possible to add en_NZ into locale/allow/codes in config.xml?

 Signature 

http://www.unicycle.co.nz

 
Magento Community Magento Community
Magento Community
Magento Community
 
thetoine
Jr. Member
 
Avatar
Total Posts:  21
Joined:  2008-06-04
Montreal, Canada
 

Hi,

I had similar issue with Canadian device. First, it’s not something managed by Mage’s file, it’s a Zend class.

In your case, Magento display no currency because there’s no config file en_NZ in /lib/Zend/Locale/Data

Go there and copy en_AU.xml to en_NZ.xml

Then, go to line #75 and change the currency AUS for NZD :

<currencies>
            <
currency type="NZD">
                <
symbol>CHANGE ME $</symbol>
            </
currency>
            <
currency type="USD">
                <
symbol>US$</symbol>
            </
currency>
        </
currencies>

Although, Zend’s core config files could end up being overwrite at every Magento update. To avoid this, I created a symbolic link from /app/locale/Zend_Locale_local/Data linking to /lib/Zend/Locale/Data, I’m sure there’s a better way to handle this though…

Be sure to Refresh cache… even if it’s off!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52809 users|856 users currently online|106528 forum posts