Jump to content

Archived

This topic is now archived and is closed to further replies.

Philip79

Oanda failure in localization.php

Recommended Posts

Could someone point me to an equivalent fix for vanilla OSC 2.3.4? The fix posted by @@burt is not applicable because application_top.php does not define Oanda or XE anywhere and admin/includes/functions/localization.php doesn't exist. I'm not sure where to start looking...

Share this post


Link to post
Share on other sites

Hello @@metx,

 

The mentioned lines are in admin/includes/application_top.php since at least version 2.2ms1.

Make sure you are looking in the right application_top, it's in admin side, not store side.

 

rgds

Rainer

Share this post


Link to post
Share on other sites

Hi @@raiwa

 

Ah, indeed I was looking in the wrong directory. :-  Changed it and now it works fine. Thanks for the quick response and a Happy New Year to you all.

Share this post


Link to post
Share on other sites

hi every one:

 

I just replace in functions/localization.php

$page = file('https://www.xe.net/ucc/convert.cgi?Amount=1&From=' . $from . '&To=' . $to);    to

$page = file('http://www.xe.com/currencyconverter/convert/?Amount=1&From=' . $from . '&To=' . $to);

 

and at application_top.php made change as

//   define('CURRENCY_SERVER_PRIMARY', 'oanda');                      comment out this line.
   define('CURRENCY_SERVER_PRIMARY', 'xe');                              change to primary.

 

worked perfect for me. Now the currency updates without a problm.

Success The exchange rate for U.S. Dollar (USD) was updated successfully via xe.
Success The exchange rate for Euro (EUR) was updated successfully via xe.

Success The exchange rate for Pounds Sterling (GBP) was updated successfully via xe.

 

Share this post


Link to post
Share on other sites

hi every one:

 

I just replace in functions/localization.php

$page = file('https://www.xe.net/ucc/convert.cgi?Amount=1&From=' . $from . '&To=' . $to);    to

$page = file('http://www.xe.com/currencyconverter/convert/?Amount=1&From=' . $from . '&To=' . $to);

 

and at application_top.php made change as

//   define('CURRENCY_SERVER_PRIMARY', 'oanda');                      comment out this line.
   define('CURRENCY_SERVER_PRIMARY', 'xe');                              change to primary.

 

worked perfect for me. Now the currency updates without a problm.

Success The exchange rate for U.S. Dollar (USD) was updated successfully via xe.
Success The exchange rate for Euro (EUR) was updated successfully via xe.

Success The exchange rate for Pounds Sterling (GBP) was updated successfully via xe.

 

Share this post


Link to post
Share on other sites

Just a quick heads up.

This localization.php file, even in FROZEN is not working.

The Onada & XE and Fixer links are incorrect.

Fixer now requires registration (got a free option) and offers a new API link.

As pointed out above, the XE link, which is the only one currently working for me is:

$page = file('http://www.xe.com/currencyconverter/convert/?Amount=1&From=' . $from . '&To=' . $to);

 

Share this post


Link to post
Share on other sites

×