xavilt Posted August 29, 2016 Share Posted August 29, 2016 Hi, I would like to know where does prestashop gets the currencies exchange from. This is, which is the source of the file http://api.prestashop.com/xml/currencies.xml. I have another currency exchange source (European Central Bank, https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml) and it varies a little. Thanks, xavi Link to comment Share on other sites More sharing options...
vekia Posted August 29, 2016 Share Posted August 29, 2016 hello/admin-dir/cron_currency_rates.php is the file that runs currency exchange rates update process. the most important is refreshCurrencies() function in currency class (classes/currency.php) Link to comment Share on other sites More sharing options...
xavilt Posted August 30, 2016 Author Share Posted August 30, 2016 Hi Vekia, thanks for the information. I had already checked how PS handles this cron and I got its final currency rates XML source http://api.prestashop.com/xml/currencies.xml What I would like to know is where this feed information, the rates on it, are got from. I've checked some other rates sources (ecb, xe.com) and the rates they have do not match with PS xml one. Thanks, xavi Link to comment Share on other sites More sharing options...
vekia Posted August 30, 2016 Share Posted August 30, 2016 i have no idea what is the source of these rates. and the rates they have do not match with PS xml one. yes, its common problem, recent times currency exchage rates that prestashop shares were not updated for ~2 weeks :| This is why i developed plugin to update currency rates with ecb i asked PS team to answer here, im also interested in this case Link to comment Share on other sites More sharing options...
xavilt Posted August 30, 2016 Author Share Posted August 30, 2016 It looks good. Does it need any special configuration? Does it store the values on the ps_currency - conversion_rate field? The source ecb file is https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now