News:

Looking for documentation? Take a look on our wiki

Main Menu

How to change bank in ConvertECB to Russian CRB (or another one)

Started by andain86, April 08, 2015, 11:16:41 AM

Previous topic - Next topic

andain86

How to change bank in ConvertECB to Russian CRB

plus

Need to increase the frequency of exchange rate updates

Joomla 3.3.6 Virtuemart 3.0.6

GJC Web Design

ECB rates are got by administrator\components\com_virtuemart\plugins\currency_converter\convertECB.php

guess you need to clone and rewrite this
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

andain86

Is it enough to change only this ?

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';

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

andain86

and is it necessary to create new one (convertCRB.php) or i can just change the original one?

andain86

Quote from: GJC Web Design on April 08, 2015, 11:39:23 AM
no idea - try it - what's the worst that could happen?
the problem is that i can't see any changes online

andain86

/cache/daily.xml has been created few mins ago

but prices in admin panel seem as the rate is 1x1

GJC Web Design

the likelihood of CRB returning the exact same formatted xml as ECB are probably nil

you have to do some proper research/coding to change this I guess
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation