TomatoCart

TomatoCart Community
Welcome, Guest
Please Login or Register.    Lost Password?

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... 4 Years, 1 Month ago Karma: 0
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
Senior Boarder
Posts: 53
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... 3 Years, 10 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... 2 Years, 11 Months ago Karma: 1
go to template module boxes>>shop by price>> type 500;1000;5000;10000;20000
it works.
ashishpatel
Ashish
Fresh Boarder
Posts: 12
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 v1.1.7 to v1.1.8 Upgrade Guide!

The upgrade guide is a step-by-step tutorial to help users to upgrade TomatoCart v1.1.7 to v1.1.8. If you have not yet updated to v1.1.7, please review its upgrade guide before applying these changes. [...]

By TomatoCart | august 21, 2012

contact_us

info@tomatocart.com
partner@tomatocart.com
Facebook Google+ Linkedin Twitter

Newsletter Subscription

Fork us on GitHub