mistertrader Posted August 25, 2011 Posted August 25, 2011 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 :)!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.