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.
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
Here you go:
$storeID = <whatever your store id is>;
Mage::app()->getStore($storeID)->getCurrentCurrencyCode();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With