Magento and Currencies – Get the correct currency symbol and code programatically

Thursday, 28. July 2011

In e-commerce business and business in general, you have got to get the currencies right or you are doomed!

In a multi-store environment, it is even more important to be able to automatically change the currency symbols for your current customers depending on their location. This is even more true, if you are doing international business.

Here are my tips on how to get the correct currency code and symbol per store.

Get currency symbol for current store:


Get currency symbol for a specify currency code:


Get currency code for current store:


You will have to set the correct locale in the backend to ensure Magento works correctly. Here is how to do it.

1) Navigate to: System > Configuration > General > Locale.

2) Choose the Timezone and Locale for each store.

Leave a Reply

You must be logged in to post a comment.