How to get Magento store currency

I am using the Magento XML-RPC api. I did not find how to get the current country or currency used for the products. Is it possible to get currency information through the Magento XML-RPC api.

Any link to the documentation helps a lot.

+7
source share
3 answers

Save currency code, for example. USD

$ currency_code = Mage :: app () → getStore () → getCurrentCurrencyCode ();

store a currency symbol, for example. $

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

indicate the name of the currency, for example. U.S. dollar

$ currency_name = Mage :: app () → getLocale () → currency ($ currency_code) → GetName ();

Link

+12
source

Here you go:

$storeID = <whatever your store id is>; Mage::app()->getStore($storeID)->getCurrentCurrencyCode(); 
+8
source

I could find it so fast, maybe you can find it here; https://www.x.com/devzone/articles/magento-part-9-understanding-magento-core-api .

You cannot call the current store (via api) and return the store object?

0
source

All Articles