Click Fraud Protection
PHP related blog, freelancer to hire!

Posts Tagged currency

Converting price from one to another in magento

I found snippet here, but it seems it is broken as second parameter (target currency) is expected to be object So correct would be $targetCurrency = Mage::getModel(‘directory/currency’)->load(‘EUR’); $price = round(Mage::helper(‘directory’)->currencyConvert($priceToConvert, ‘GBP’, $targetCurrency), 2);

Read more