Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Oanda failure in localization.php


Philip79

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...

Link to comment
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

Link to comment
Share on other sites

  • 8 months later...

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.

 

Link to comment
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.

 

Link to comment
Share on other sites

  • 9 months later...

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

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...