How to get Magento store currency

amadamala picture amadamala · Jul 18, 2012 · Viewed 20.6k times · Source

I'm using Magento XML-RPC api. I haven't found how to get the current store country or currency used for the products. Is it possible to get the currency information through Magento XML-RPC api.

Any link to documentation is very helpful thank you.

Answer

Suman KC picture Suman KC · May 29, 2015

Store currency code eg. USD

$currency_code = Mage::app()->getStore()->getCurrentCurrencyCode();

store currency symbol eg. $

$currency_symbol = Mage::app()->getLocale()->currency( $currency_code )->getSymbol();

store currency name eg. US Dollar

$currency_name = Mage::app()->getLocale()->currency( $currency_code )->getName();

Reference