Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
Anjula
Anjula
Brief
We have modified the 'admin_currencysource.php' file for version 3.5.
 
Description.
When attempting to update currency from currencysource.com site you received the following error:
Can't find rates to the following currencies
The reason was that Currencysource site has updated their urls for currencies feeds.
 
Solution.
We would recommend to download an updated version of the files from here: http://www.viart.com/downloads/admin_currencysource_3.5.zip
 
Further, extract the above mentioned files into the 'admin' folder of your shop replacing an existing one. Don't forget to make a backup copy of the current file in case something goes wrong.
 
phil (Guest)
phil (Guest)
Does this patch include the error that I receive:
 
 
"Can't connect to remote host:currencysource.ez-cdn.com"
 
dmaui
dmaui
I've updated this file and that corrected my error (got the same one as Phil "Can't connect..."
 
But I am still getting this error...
"Can't find rates to the following currencies: HKD, TWD, YTL "
So it looks like some further tweaking is needed?
 
DickS
DickS
No, because currencysource.com does not have those currencies in the database so when Viart asks for the currency codes there will be an error from Currencysource.
 
You will need to update these manually. Ideally there would be a setting per currency in Viart where you can activate online update per currency.
 
DickS
 
dmaui (Guest)
dmaui (Guest)
Yes, that would be ideal! For the time being, I think I'll deactivate these currencies.
 
Also, it would be great if one could run admin_currencysource.php as a cron job. Is that possible?
 
DickS
DickS
Yes, but not the direct file afaik. Let me ask our guys how they setup our shops.
 
pe76216 (Guest)
pe76216 (Guest)
An updated version doesn't work:
http://www.viart.com/downloads/admin_currencysource_3.5.zip
 
Solution:
 
Change from
 
$currency_host = "currencysource.ez-cdn.com";
$currency_path = "/" . $default_currency . ".xml";
$currency_url = "http://" . $currency_host . $currency_path;
 
To
 
$currency_host = "currencysource.com";
$currency_path = "/rss/" . $default_currency . ".xml";
$currency_url = "http://" . $currency_host . $currency_path;