From 9854ebc70e192739ecb565c542f92fc7a0edcaed Mon Sep 17 00:00:00 2001 From: akkushopJK Date: Wed, 9 Feb 2022 13:11:06 +0100 Subject: [PATCH] Change number format to without thousands_separator should fix https://github.com/lengow/plugin-shopware/issues/7 --- Components/LengowProduct.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Components/LengowProduct.php b/Components/LengowProduct.php index 2212558..1f733df 100755 --- a/Components/LengowProduct.php +++ b/Components/LengowProduct.php @@ -208,9 +208,9 @@ public function getData($name) case 'price_incl_tax': case 'price_before_discount_excl_tax': case 'price_before_discount_incl_tax': - return number_format($this->prices[$name] * $this->factor, 2); + return number_format($this->prices[$name] * $this->factor, 2, '.', ''); case 'discount_percent': - return number_format($this->prices[$name], 2); + return number_format($this->prices[$name], 2, '.', ''); case 'discount_start_date': case 'discount_end_date': return ''; @@ -654,9 +654,9 @@ private function getShippingCost() } } } - return number_format($shippingCost * $this->factor, 2); + return number_format($shippingCost * $this->factor, 2, '.', ''); } - return number_format(0, 2); + return number_format(0, 2, '.', ''); } /**