Magento: How To Display Currency Code After All Totals?

1.2k views Asked by At

My question is very similar to this one on SO, only it doesn't exactly help me because it talks about replacing the currency symbol in front of the price and not displaying something after it.

What I would like to do is display after totals on the checkout, cart and other pages like that the price in this format: $232.00 AUD - the price will always have AUD on the end as it is an Australian run store.

Is there an easy way of doing this without having to edit multiple templates and resort to hacky conditional if statements?

2

There are 2 answers

1
Юрий Николаев On BEST ANSWER

If your prices always ends with ".00" you can use CurrencyManager module from related topic answer. In this case you can set option "Cut Zero Decimals" to "Yes", and option "Replaces Cuted Zero Decimals" to ".00 AUD".

If you have cents in your prices you need to change

 public function formatTxt($price, $options=array()

in /app/code/community/ET/CurrencyManager/Model/Currency.php if you will use this module, or rewrite this original function in core (/app/code/core/Mage/Directory/Model/Currency.php) by own module.

0
Anton S On

Formats are defined in zend framework locale xml files so to change the format you need to edit one of these files in /lib/Zend/Locale/Data/*.xml and for Australia you are interested in en_AU.xml where you can specify the format you need.

see How do I change the currency symbol in Magento 1.5.1.0? and read the comments as well