currency-

you can get currency rate by using below code :

Mage::getModel(directory/currency);

i have try for get currency rates for a multiple currencies in magento a site. First: get allowed currency for a store

$currencyModel = Mage::getModel(directory/currency);
$currencies = $currencyModel->getConfigAllowCurrencies();

get base currency for a store

$baseCurrencyCode = Mage::app()->getStore()->getBaseCurrencyCode();
$defaultCurrencies = $currencyModel->getConfigBaseCurrencies();

Then fetch currency code rate and complete code is

$currencyModel = Mage::getModel('directory/currency');
$currencies = $currencyModel->getConfigAllowCurrencies();
$baseCurrencyCode = Mage::app()->getStore()->getBaseCurrencyCode();
$defaultCurrencies = $currencyModel->getConfigBaseCurrencies();

$rates=$currencyModel->getCurrencyRates($defaultCurrencies, $currencies);
foreach($rates[$baseCurrencyCode] as $key=>$value  ) {
echo $key."-";
echo $value;
echo "
";
            }

Displaying different currencies for a single product     If get different currencies for a product and want of product price difference rate then just multiply rate

$rate*$proPrice;

Magento currency rates is manged from admin, so to admin > system >Manage Currency >Rates and managed currency symbol from admin > system >Manage Currency >Symbols If want to add multiple currency then goto admin > system > GENERAL > Currency setup> Allowed Currencies

About Author:

Kalpesh Chavada

Kalpesh Chavada is Our Founder & CEO of Akshar Group Technologies. He is serving with 11+ years of experience in different technologies like Magento, WordPress, Laravel, jQuery, Shopify, Branding, and Digital Marketing. He is very good with creative logic and always ready to take on challenges.

Kalpesh Author