From c0427c4e72238d6181cc47a8b69aaaf702e2a210 Mon Sep 17 00:00:00 2001 From: ilham B <80049379+il4mb@users.noreply.github.com> Date: Sun, 20 Aug 2023 01:11:20 +0700 Subject: [PATCH] Update Guest.php (#1551) fix currency Price format --- src/modules/Currency/Api/Guest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Currency/Api/Guest.php b/src/modules/Currency/Api/Guest.php index ff67199c4..62a5fa56f 100644 --- a/src/modules/Currency/Api/Guest.php +++ b/src/modules/Currency/Api/Guest.php @@ -74,7 +74,7 @@ class Guest extends \Api_Abstract $p ??= 0; - $p = match ($c['price_format']) { + $p = match (intval($c['price_format'])) { 2 => number_format($p, 2, '.', ','), 3 => number_format($p, 2, ',', '.'), 4 => number_format($p, 0, '', ','),