Warning: number_format() expects parameter 1 to be float

12.01.2022 16:46
#1
CCD
Joomshopping forum user no avatar
Name: Frank
31.10.2014
Posts: 58
Quote
Warning: number_format() expects parameter 1 to be float

Hi,

another little bug. Foreign corporate customers with a VAT ID should receive an invoice without VAT. Then comes the warning message.
Solution for us:
I disabled show warning in Joomla in Global Configuration to Error Reporting: None
It is working fine now.

Thank you for supporting us, Frank
Warning: number_format() expects parameter 1 to be float


Joomla: 4.0.5.
JoomShopping: 5.0.2
PHP: 7.4
MySQL: 5.7.25
Website Url: www.capri-ersatzteile.de
 
12.01.2022 20:19
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25936
Quote
Aw: Warning: number_format() expects parameter 1 to be float

components\com_jshopping\Helper\Helper.php

after
public static function formatprice($price, $currency_code = null, $currency_exchange = 0, $style_currency = 0) {
$jshopConfig = \JSFactory::getConfig();

add row
$price = floatval($price);

Will be in JoomShopping 5.0.3


Last change: 12.01.2022 21:18
 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.