Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Update Currencies Error


killkenny

Recommended Posts

Posted

Hi everyone,

 

I deleted all of the standard currencies (USD and EUR), so that I could have South African Rands(ZAR) as my default and only currency.

 

I did that and all the price values on the site changed to 0.

 

So I tried to do an "Update Currencies" but got the error :

 

"Warning: The primary exchange rate server (oanda) failed for South African Rand (ZAR) - trying the secondary exchange rate server.

Error: The exchange rate for US Dollar (ZAR) was not updated via xe. Is it a valid currency code?"

 

So I tried a couple of things which didn't work, so I restored the database from the origional sql file in the install directory. It loaded the currencies but my prices were still set to 0.

 

So I tried another currency update, and I got the following errors:

 

" Warning: The primary exchange rate server (oanda) failed for US Dollar (USD) - trying the secondary exchange rate server.

Error: The exchange rate for US Dollar (USD) was not updated via xe. Is it a valid currency code?

Warning: The primary exchange rate server (oanda) failed for Euro (EUR) - trying the secondary exchange rate server.

Error: The exchange rate for Euro (EUR) was not updated via xe. Is it a valid currency code?"

 

At which time I decided it was all going over my head and I that I should post a question here.

 

Any help to get this sorted would be greatly appreciated!

Posted

Currencies and languages are tied togather. When osCommerce was built it was assumed that if you used the English language then your currency was US Dollars :)

 

When you added the Rand and deleted the US Dollar and Euro you needed to go to includes/languages/english.php, find 'USD' and change it to 'ZAR'. This is assuming that your site uses the English language.

 

Vger

Posted
Currencies and languages are tied togather. When osCommerce was built it was assumed that if you used the English language then your currency was US Dollars :)

 

When you added the Rand and deleted the US Dollar and Euro you needed to go to includes/languages/english.php, find 'USD' and change it to 'ZAR'. This is assuming that your site uses the English language.

 

Vger

 

I tried that. I'm afraid it didn't help. Anything else I might be able to try?

Posted

Set 'Switch To Default Language Currency' to true in your osC admin panel. You did remember to tick the box to make the currency the default currency before saving it and trying the currency update?

 

Vger

Posted
Set 'Switch To Default Language Currency' to true in your osC admin panel. You did remember to tick the box to make the currency the default currency before saving it and trying the currency update?

 

Vger

 

Well it seems like everything is working today for some strange reason. I tried another Currency Update and it went through fine. Go figure. :)

 

Thanks for your help all the same!

Archived

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

×
×
  • Create New...