Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

CURRENCIES HELP PLEASE! :(!


mistertrader

Recommended Posts

Posted

Hey everyone.

 

So I tried adding a new currency (canadian dollar), but when I go on my website and change the currency to "Canadian" I get this error:

 

Warning: number_format() expects parameter 2 to be long, string given in /home/moiz/public_html/osc/includes/classes/currencies.php on line 42

 

This is line 42:

 

$format_string = $this->currencies[$currency_type]['symbol_left'] . number_format(tep_round($number * $rate, $this->currencies[$currency_type]['decimal_places']), $this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point']) . $this->currencies[$currency_type]['symbol_right'];

 

Also, when I go in the admin cpanel in the currency section, and click "update currencies" at the top it says:

 

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

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

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

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

 

it also says:

 

 

Warning: number_format() expects parameter 2 to be long, string given in /home/moiz/public_html/osc/admin/includes/classes/currencies.php on line 38

 

Here is line 38: if (empty($currency_type)) $currency_type = $currency;

 

 

thanks for your time. All help is greatly appreciated :)!

 

Can anyone help me? Thanks :)!

Posted

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.

Posted

Is there any currency conversion added used.Probably an addon that gets rates from online.

 

Also did you use CAD or some other value for canadian currency this might create some issues.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

Title: Canadian Dollar

Code:CAD

Symbol left:$

Symbol right:CAD

Decimal point:.

Thousands point:,

Decimal place:2

 

This is standard for Canadian currency

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Archived

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

×
×
  • Create New...