TomatoCart

65382 Downloads
331 users online
TomatoCart Community
Welcome, Guest
Please Login or Register.    Lost Password?
Bookmark and Share

Error Warning: number_format() expects parameter 1 to be double, string given in...
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Error Warning: number_format() expects parameter 1 to be double, string given in...
#2029
Error Warning: number_format() expects parameter 1 to be double, string given in... 1 Year, 6 Months ago Karma: -1
Hello,

I get this error, I don't see where to resolve it:

" Warning: number_format() expects parameter 1 to be double, string given in /home/bbymotor/public_html/shop/includes/classes/currencies.php on line 108

Warning: number_format() expects parameter 1 to be double, string given in /home/bbymotor/public_html/shop/includes/classes/currencies.php on line 108 "

This error appear in up the right sidebar.

How to repair it?
focusoft
Place Your Bussines At The Top Of Search Engines
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
Gender: Male focusoft2008 FocuSoft Design focusoft2008 Location: Craiova, Romania Birthday: 03/03
The administrator has disabled public write access.
 
#5636
Re:Error Warning: number_format() expects parameter 1 to be double, string given in... 1 Year, 3 Months ago Karma: 0
Hi, got the same problem and I fix it like this :

- open ../your-tomatocart-folder/includes/classes/currencies.php
- go to line 108 :

return $this->currencies[$currency_code]['symbol_left'] . number_format(osc_round($number, $this->currencies[$currency_code]['decimal_places']), $this->currencies[$currency_code]['decimal_places'], $osC_Language->getNumericDecimalSeparator(), $osC_Language->getNumericThousandsSeparator()) . $this->currencies[$currency_code]['symbol_right'];

replace with :

return $this->currencies[$currency_code]['symbol_left'] . number_format(osc_round((double)$number, $this->currencies[$currency_code]['decimal_places']), $this->currencies[$currency_code]['decimal_places'], $osC_Language->getNumericDecimalSeparator(), $osC_Language->getNumericThousandsSeparator()) . $this->currencies[$currency_code]['symbol_right'];

It works for mine
Guess it does too for yours

Nemo
adrianemo
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#15897
Re:Error Warning: number_format() expects parameter 1 to be double, string given in... 4 Months, 1 Week ago Karma: 1
go to template module boxes>>shop by price>> type 500;1000;5000;10000;20000
it works.
ashishpatel
Ashish
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
Gender: Male ashishpatel.1992 Location: India Birthday: 07/02
Ashish
The administrator has disabled public write access.
 
Go to top Page: 1

Latest Blog Post

TomatoCart v2.0 – An open source ecommerce framework

Since the TomatoCart v1.0’s framework getting old and the core is not a pure MVC design, it causes many troubles ...

Blog | Administrator | Saturday, 21 January 2012

More in: About Us

-
+
3

contact_us

TomatoCart
+86-13771170725
info@tomatocart.com
http://www.tomatocart.com

Newsletter Subscription

Name:

E-Mail:

Verification Code:
Captcha

Receive HTML?