VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: ngodoan on December 01, 2012, 11:04:56 AM

Title: How to change Euro bank in convertECB.php
Post by: ngodoan on December 01, 2012, 11:04:56 AM
convertECB.php using Euro Central Bank to change all currencies. but I want to using my nation bank, dont use exchange rate from ECB.

How can I fix it ?

plz.
Title: Re: How to change Euro bank in convertECB.php
Post by: bytelord on December 01, 2012, 17:24:04 PM
Hello,

convertECB is located under administrator\components\com_virtuemart\plugins\currency_converter\convertECB

between lines 29-32 you will find the appropriate information:

var $document_address = 'http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml';

var $info_address = 'http://www.ecb.int/stats/eurofxref/';
var $supplier = 'European Central Bank';



You could create a new converter but you have to use the schema that your bank will provide. Study the code, create a new exchange rate plugin.

Regards