Public snippet   |  Code orientation PHP  |   Tested for Magento version 1.3.2.4 Converts price from one currency to another. Conversion rates need to be downloaded and available for this to work.
// Currency conversion rates have to be available in the target currency 
$fromCur = 'USD'; // currency code to convert from - usually your base currency
$toCur = 'EUR'; // currency to convert to
$converted_final_price = round(Mage::helper('directory')->currencyConvert($tax->getPrice($product, $product->getFinalPrice(), false), $fromCur, $toCur), 2);

Total snippets

158

Who's new

  • Naguripisto
  • Stolenfinche
  • anhreg
  • HamuroGTRx
  • almotaRom
 
Magento Code Snippets by the developers for developers :) | Established & Maintained by Branko Ajzele from ActiveCodeline