Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Currency not supported and prices now 0


monker

Recommended Posts

I was trying to test out my checkout and I got the error that currency is not supported. So I changed Switch To Default Language Currency to true. I only have CAD everywhere. The prices then went to 0 and when I tried to change it back to false the prices are still 0. is there another configuration that I need to change now?

Link to comment
Share on other sites

I was trying to test out my checkout and I got the error that currency is not supported. So I changed Switch To Default Language Currency to true. I only have CAD everywhere. The prices then went to 0 and when I tried to change it back to false the prices are still 0. is there another configuration that I need to change now?

 

 

Never mind I figured it out I had to hit update curency

Link to comment
Share on other sites

Never mind I figured it out I had to hit update curency

 

 

Haveing the problem again. The curentcy that I have is CAD for canada in the currency menu. I have Switch To Default Language Currency false. And when I try to hit update currency I get a server error:Warning: The primary exchange rate server (oanda) failed for Canadian Dollar (CAD) - trying the secondary exchange rate server.

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

Now all of the prices on my site are 0.

 

Is there a configuration that is wrong?

Link to comment
Share on other sites

you need to set in default language file default currency.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

you need to set in default language file default currency.

 

i do

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)

define('LANGUAGE_CURRENCY', 'CAD');

 

where is the USE_DEFAULT_LANGUAGE_CURRENCY ???

Link to comment
Share on other sites

Haveing the problem again. The curentcy that I have is CAD for canada in the currency menu. I have Switch To Default Language Currency false. And when I try to hit update currency I get a server error:Warning: The primary exchange rate server (oanda) failed for Canadian Dollar (CAD) - trying the secondary exchange rate server.

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

Now all of the prices on my site are 0.

 

Is there a configuration that is wrong?

More of a problem with your site connecting to oanda and xe. Any other message involved?

Link to comment
Share on other sites

More of a problem with your site connecting to oanda and xe. Any other message involved?

 

 

I turned Switch To Default Language Currency back to true and eveything is fine again. I thought setting it to true was only when there where multi languages or multi currencies.

Link to comment
Share on other sites

I turned Switch To Default Language Currency back to true and eveything is fine again. I thought setting it to true was only when there where multi languages or multi currencies.

Don't really see how that has anything to do with currency updating. Sorry.

Link to comment
Share on other sites

  • 2 months later...

I'm having the same problem.

Here's what I get:

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 Canadian Dollar (CAD) - trying the secondary exchange rate server.

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

 

My default currency is CAD. How do you Switch To Default Language Currency?

My prices are not zero but they are messed up e.g. candian prices are less than US prices which is not right considering that the US$ is stonger than the CA$.

Are these the correct currency symbols: USD, CAD?

 

Thanks

 

D.

Link to comment
Share on other sites

I'm having the same problem. Here are my findings:

 

If I put "CAN" as the currency code in OC admin then my site shows the correct values bu won't link to PayPal...I get the "does not accept USD..." error when you try to process a pyment.

 

When I change the Default Language Currency setting to true an then change the code....define('LANGUAGE_CURRENCY', 'CAD'); in the includes/language/english.php file then all my prices in the checkout show up as zero's, however, I'm abl to process the payment on PayPal.

 

I then set Default Language Currency setting to false and then change the currency code in OSC Admin to CAD...this gave me the same errors already mentioned:

Warning: The primary exchange rate server (oanda) failed for Canadian Dollar (CAD) - trying the secondary exchange rate server.

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

 

My conclusion...PayPal recognizes CAD, but oSC is setup and configured using the incorrect CAN currency code.

 

Question - How can we reset or regonfigure OSC code to understand the "CAD" code instead of "CAN"???

Link to comment
Share on other sites

SOLUTION!!!!

 

I just did one more test and it worked. I almost had it correct the first time.

 

1. In Admin use the following settings:

 

Title: CAD Dollar

Code: CAD

 

Symbol Left: $

Symbol Right:

 

Decimal Point: .

Thousands Point: ,

Decimal Places: 2

 

Last Updated: 12/12/2008

Value: 1.00000000

 

Example Output:

$30.00 = $30.00

 

 

2. Switch To Default Language Currency = true

 

 

3. change the code....define('LANGUAGE_CURRENCY', 'CAD'); in the includes/language/english.php file

 

 

This should work...my store is based in Ontario Canada and only using CAD currency....(www.pureradiance1.com)

Link to comment
Share on other sites

  • 1 month later...
SOLUTION!!!!

 

I just did one more test and it worked. I almost had it correct the first time.

 

1. In Admin use the following settings:

 

Title: CAD Dollar

Code: CAD

 

Symbol Left: $

Symbol Right:

 

Decimal Point: .

Thousands Point: ,

Decimal Places: 2

 

Last Updated: 12/12/2008

Value: 1.00000000

 

Example Output:

$30.00 = $30.00

 

 

2. Switch To Default Language Currency = true

 

 

3. change the code....define('LANGUAGE_CURRENCY', 'CAD'); in the includes/language/english.php file

 

 

This should work...my store is based in Ontario Canada and only using CAD currency....(www.pureradiance1.com)

 

Ok, I did this, but now I have Zero Prices in my Admin Catalog, but the store front is correct. If I change my currency code back to CAN from CAD, then my store front prices are zeros and my admin prices work again. There seems to be another php file that is configured with the wrong country code for Canada..

Link to comment
Share on other sites

Ok, I did this, but now I have Zero Prices in my Admin Catalog, but the store front is correct. If I change my currency code back to CAN from CAD, then my store front prices are zeros and my admin prices work again. There seems to be another php file that is configured with the wrong country code for Canada..

What do you have in the other language files,

define('LANGUAGE_CURRENCY', 'CAD'); in the includes/language/english.php file

define('LANGUAGE_CURRENCY', 'CAD'); in the includes/language/french.php file

define('LANGUAGE_CURRENCY', 'CAD'); in the includes/language/spanish.php file

I see 0 when I switch to French and Spanish.

Link to comment
Share on other sites

I got it working, it was really odd, I re-entered the information that was already there for the currency (shown below), then it confirmed my setting and went through. I guess when I put the settings in the first time it didn't update oscommerce, I just re entered the same thing... odd..

 

Thanks for looking I appreciate it :)

 

zero-price-2.jpg

Link to comment
Share on other sites

Ok, I did this, but now I have Zero Prices in my Admin Catalog, but the store front is correct. If I change my currency code back to CAN from CAD, then my store front prices are zeros and my admin prices work again. There seems to be another php file that is configured with the wrong country code for Canada..

 

Thanks so much.

 

My store wasn't displaying the price in the admin or catalog.

I followed this post, selected default, and downloaded the php file, change what was USD to AUD (australian) and now it all works fine.

 

Thanks again.

 

Chris

Link to comment
Share on other sites

Thanks for this guys, I was having the same problem of all prices showing '0' in GB Pounds.

Went into english.php and changed the language_curency to GBP, now all works fine.

 

This is my second setup of OS Commerce and had no problem with this first time. Odd.

Link to comment
Share on other sites

Try the second thread in the installation forum.

 

Post 15 & 27 if I remember correctly.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

  • 3 years later...

Solution:

  1. Open file includes/language/english.php or other languages you use
  2. define('LANGUAGE_CURRENCY', 'XXX');
  3. In admin -> My Store -> Switch To Default Language Currency -> True
  4. Set Localization -> Currencies -> Set your currency to default.

That should fix the 0 price in both catalog and admin side.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...