metx Posted January 2, 2017 Share Posted January 2, 2017 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 More sharing options...
♥raiwa Posted January 2, 2017 Share Posted January 2, 2017 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 About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
metx Posted January 2, 2017 Share Posted January 2, 2017 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. Link to comment Share on other sites More sharing options...
zahir2619 Posted September 22, 2017 Share Posted September 22, 2017 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. The exchange rate for U.S. Dollar (USD) was updated successfully via xe. The exchange rate for Euro (EUR) was updated successfully via xe. The exchange rate for Pounds Sterling (GBP) was updated successfully via xe. Link to comment Share on other sites More sharing options...
zahir2619 Posted September 22, 2017 Share Posted September 22, 2017 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. The exchange rate for U.S. Dollar (USD) was updated successfully via xe. The exchange rate for Euro (EUR) was updated successfully via xe. The exchange rate for Pounds Sterling (GBP) was updated successfully via xe. Link to comment Share on other sites More sharing options...
♥raiwa Posted September 22, 2017 Share Posted September 22, 2017 @Zahir, this was adressed and solved here: https://www.oscommerce.com/forums/topic/410498-oanda-failure-in-localizationphp/?do=findComment&comment=1750768 and is already included in 2.3.4 BS EDGE About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
dr_lucas Posted July 14, 2018 Share Posted July 14, 2018 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); Did I help you? Click "Like" or "Thanks"! It's free of charge. :)My contributions:Total Configuration (newly updated 07/2018, for both osC 2.2 and 2.3.4.1 BS Frozen CE)User Tracking with Admin 1.0 (newly updated 07/2018)FedEx - Web Services v9, FAQ System , Who's Online Enhancement, Order Editor, MoneyBookers IPN, Ship in Cart (MS2), Admin Products Paging, Margin Report v1.00, 2Checkout INS / IPN (Instant Notification System) for MS2.2, Visitor Web Stats, Time Zone Offset - Adjust to match your location, Category Meta Tags Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.