How to get Magento store currency

21,085

Solution 1

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

Solution 2

Here you go:

$storeID = <whatever your store id is>;

Mage::app()->getStore($storeID)->getCurrentCurrencyCode();
Share:
21,085
Nimer Sulieman
Author by

Nimer Sulieman

Software Developer. Java, Cloud Computing.

Updated on July 25, 2022

Comments

  • Nimer Sulieman
    Nimer Sulieman almost 2 years

    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.