Magento – BNR currency import module for RON

Automatically currency rate import for RON currency in your Magento e-commerce

You can download here: https://github.com/georgebabarus/mage-bnr-currency-import

Or you can create your own currency import module following the next instructions, it is very simple:

Build your own Magento e-commerce – currency rate import extension

  1. declare your currency import model in etc/config.xml file
        <global>
            <currency>
                <import>
                    <services>
                        <bnr>
                            <name>BNR RON</name>
                            <model>bb_bnr/currency_import_bnr</model>
                        </bnr>
                    </services>
                </import>
            </currency>
    
            <models>
                <bb_bnr>
                    <class>Bb_Bnr_Model</class>
                </bb_bnr>
            </models>
        </global>
  2. Next, in the Bb_Bnr_Model_Currency_Import_Bnr class definition extend the class  Mage_Directory_Model_Currency_Import_Abstract 
  3. This class have to implement the function  protected function _convert($currencyFrom, $currencyTo, $retry=0). This function has to return the currency rate between “currencyFrom” and “currencyTo” as float.