From b2cb236d5bf988f570c061a1fb6abdd25ea2a362 Mon Sep 17 00:00:00 2001 From: Abdelhamid Errahmouni Date: Mon, 6 Nov 2023 00:48:08 +0100 Subject: [PATCH] multiplied amount and price by 100 to accommodate for the accessor in the product model in formattedPrice Attribute --- src/Models/Shop/Product/Product.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Models/Shop/Product/Product.php b/src/Models/Shop/Product/Product.php index fcfecc6a9..425635d66 100644 --- a/src/Models/Shop/Product/Product.php +++ b/src/Models/Shop/Product/Product.php @@ -119,12 +119,12 @@ public function getFormattedPriceAttribute(): ?string { if ($this->parent_id) { return $this->price_amount - ? $this->formattedPrice($this->price_amount) - : ($this->parent->price_amount ? $this->formattedPrice($this->parent->price_amount) : null); + ? $this->formattedPrice($this->price_amount * 100) + : ($this->parent->price_amount ? $this->formattedPrice($this->parent->price_amount * 100) : null); } return $this->price_amount - ? $this->formattedPrice($this->price_amount) + ? $this->formattedPrice($this->price_amount * 100) : null; }