mistertrader Posted August 28, 2011 Posted August 28, 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 :)!
web-project Posted August 28, 2011 Posted August 28, 2011 try the following topic: http://www.oscommerce.com/forums/topic/348899-php-53-number-format-in-currenciesphp/page__view__findpost__p__1457922 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.
satish Posted August 29, 2011 Posted August 29, 2011 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.
jolicatellas Posted August 29, 2011 Posted August 29, 2011 To add the Canadian currency try this: Currency: CA Code: CAN and what ever the value is. I think the word Canadian is too long.
satish Posted August 29, 2011 Posted August 29, 2011 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.