Jump to content
Latest News: (loading..)

Archived

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

hailstormxp

Currency won't update

Recommended Posts

Hi,

 

I've tried getting the currency to update but it just doesn't work. I'm using MS1 but have tried on the latest snapshot also.

 

I've changed it to GBP in english.php but that still doesn't solve the problem.

 

I've restarted the apache server many times also but it hasn't helped.

 

I really need this sorted :(

Share this post


Link to post
Share on other sites

I have the same problem.. (Btw, I have just posted this question here:

 

http://forums.oscommerce.com/viewtopic.php?t=48750 )

 

Im using MS1 - i have both Euro's and USD's, both on 1.000000 ; with USD as default - but it will not update the currencies...

 

This is an unmodified MS1 installation on a Linux server. (I would give you the admin URL, but im not sure if this is safe (?) , since there is a file admin section in Oscomm..)

 

LANGUAGE_CURRENCY in English.php is unmodified, so should be default = USD.

 

If anyone knows, :D in advance... Angurio


"You must be the change you wish to see in the world" - M. Ghandi

Share this post


Link to post
Share on other sites

I have the same problem. I am using the version currencies.php,v 1.45 2002/11/18 20:50:50. It worked fine through June 16 but now it does not work any longer. I have EUR set to 1.00000 and the other currencies to their conversion rates.

 

Any idea?

Share this post


Link to post
Share on other sites

Werner..

 

my first thought was that 'oh Oanda must be down', but Oscommerce should default to Xe.com if Oanda fails... they cant both be down?, can they?

 

Maybe Oanda is down, but Oscomm is not properly using Xe.com instead? (just a guess....)

 

Ill try changing the primary server to Xe.com and see what happens...

 

Angurio..


"You must be the change you wish to see in the world" - M. Ghandi

Share this post


Link to post
Share on other sites

It's obviously that neither Oanda nor XE allow anymore access to their currency exchange data for free.

I've tried to print_r the array that is turned back as a result from a remote opening of XE.com convert.cgi script. See below the result:-)

convert.

Array

(

[0] => <PRE>

[1] =>

[2] => Automated extraction of currency data from our services is a

[3] => violation of the Terms of Use Agreement into which you must

[4] => enter to access our site.

[5] =>

[6] => You will appreciate that the time, effort and expense we put into

[7] => creating and maintaining our site is considerable. Our services

[8] => and data are proprietary, and the result of many years of hard

[9] => work. Unauthorized use of our services, even as a result of a

[10] => simple mistake or failure to read the terms of use, is

[11] => unacceptable.

[12] =>

[13] => Please immediately cease and desist using our data and services

[14] => in this manner.

[15] =>

[16] => We do offer a number of licensing options which allow you to

[17] => incorporate XE.com currency functionality into your software,

[18] => websites, and services. For more information, contact us at:

[19] =>

[20] => XE.com Licensing

[21] => +1 416 214-5606 x21

[22] => mailto:licensing@xe.com

[23] =>

[24] => Thanks for you attention to this matter.

[25] =>

[26] => Sincerely,

[27] => XE.com

[28] =>

[29] => </PRE>

)

 

So, draw a conclusion that they do not like to support anymore the open source community:-(

Most probably the same is valid for Oanda, however I've not check yet.

 

I thing Mark Evans had written this script or one that makes updates using a cron job, so I hope he will read this post and could find some other sources for currency exchange data.

By the way if someone else find a free currency exchange data pls let us know.

 

Regards,

Chris

Share this post


Link to post
Share on other sites

If you got update successfully you should see the following in admin->currencies:

Last Updated:

22/06/2003

 

I'm realy doubt you got it because both companies Oanda and XE don't support the update as it is designed in the currency script of oscommerce.

Share this post


Link to post
Share on other sites

Yep, everthing works fine with my currency update too! I also went to XE.com to manually check that the rates were correct and they were spot on :D

Share this post


Link to post
Share on other sites

I've updated the 4 store that i am working on and all 4 say

Last Updated: 06/23/2003

Value: 1.00000000

 

The_Bear


Pierre Rollin

Share this post


Link to post
Share on other sites

Well, I tried it again this morning -> no update :cry:

 

I am questioning myself how one can and the other cannot update. That sounds mysterious.

 

rgds

Share this post


Link to post
Share on other sites

I get:

 

Warning: file("http://www.xe.net/ucc/convert.cgi?Amount=1&From=USD&To=USD") - No such file or directory in /home/x/xx/xxxxxx/public_html/admin/includes/functions/localization.php on line 42

 

:cry:

Share this post


Link to post
Share on other sites

This is the reply i got from Oanda today...

 

Dear Angus:

 

Our FXP service is not a free service and is subscription based at US$1000 per month.

 

For more information and to subscribe to the service, please visit: http://www.oanda.com/products/fxp/index.shtml.

 

Kind Regards.

 

The OANDA FX Team

http://www.oanda.com/

 

:cry: er... anyone know anymore than me?


"You must be the change you wish to see in the world" - M. Ghandi

Share this post


Link to post
Share on other sites

Is anyone aware of another service we can connect to? It seems shocking to me that a service can go from 'free to all to use' to $1000 per month?!

 

For now I guess we'll have to update manually.


Regards, Jay.

Share this post


Link to post
Share on other sites

I just tried it again and it did not work. Perhaps you should send me your script (or computer) to get it work. :?

Share this post


Link to post
Share on other sites

I have just installed today snapshot to do a update currencies test and still everything ok

The exchange rate for US Dollar (USD) was updated successfully via oanda.  

The exchange rate for Euro (EUR) was updated successfully via oanda.  

 

The_Bear


Pierre Rollin

Share this post


Link to post
Share on other sites
I have just installed today snapshot to do a update currencies test and still everything ok
The exchange rate for US Dollar (USD) was updated successfully via oanda.

The exchange rate for Euro (EUR) was updated successfully via oanda.

 

The_Bear

 

Reason is your script has oanda in mine has:

www.xe.net/ucc/convert.cgi

 

Can you post the oanda url? Thanks!

Share this post


Link to post
Share on other sites

This is utterly baffling... it must be a snapshot issue. If anyone can make the currency update work (or not work, as the case maybe), can they post what snapshots they are using?

 

This may solve the problem! Cheers in advance....

 

Angurio..


"You must be the change you wish to see in the world" - M. Ghandi

Share this post


Link to post
Share on other sites

Thanks Pierre...

 

I just installed and ran the 20030626 snapshot and all is working fine... (updated via oanda):

 

 

 

The exchange rate for US Dollar (USD) was updated successfully via oanda. 

The exchange rate for Euro (EUR) was updated successfully via oanda.

 

so... must be an issue with MS1 then?

 

Angurio....


"You must be the change you wish to see in the world" - M. Ghandi

Share this post


Link to post
Share on other sites

I am having trouble with MS1, seems that the older snapshots I have work fine. I am going to investigate the differences tomorrow...


Regards, Jay.

Share this post


Link to post
Share on other sites

Thanks, an update of the currency files did it. Works great again! :D

 

rgds

Share this post


Link to post
Share on other sites

Werner - if you dont mind me asking - how did you acheive this? what are the files that need updating>?

 

Cheers

 

Angurio


"You must be the change you wish to see in the world" - M. Ghandi

Share this post


Link to post
Share on other sites

You need to download the snapshot and copy all currency.php files to their directories (admin and languages). You also should edit the language files, as new variables were defined and not translated (at least not into German). I also disabled the success message, because I did not want to be notified if the update was successful, but only if an error occured (comment out line 90 in admin/currencies.php where it reads

 

$messageStack->add_session(sprintf(TEXT_INFO_CURRENCY_UPDATED, $currency['title'], $currency['code'], $server_used), 'success');

 

Thats all.

 

Good luck.

Share this post


Link to post
Share on other sites

×