From de1bf2a5eacb308d8e3cd412ce9440a08dd68f2c Mon Sep 17 00:00:00 2001 From: sartoric <> Date: Thu, 9 Jan 2020 19:15:48 +0100 Subject: [PATCH] fix issue with the priceTax value that is not dynamically retrieved --- src/CartItem.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/CartItem.php b/src/CartItem.php index 5efb546..6ba3f5f 100644 --- a/src/CartItem.php +++ b/src/CartItem.php @@ -279,7 +279,6 @@ class CartItem implements Arrayable, Jsonable $this->id = $item->getBuyableIdentifier($this->options); $this->name = $item->getBuyableDescription($this->options); $this->price = $item->getBuyablePrice($this->options); - $this->priceTax = $this->price + $this->tax; } /** @@ -296,7 +295,6 @@ class CartItem implements Arrayable, Jsonable $this->name = Arr::get($attributes, 'name', $this->name); $this->price = Arr::get($attributes, 'price', $this->price); $this->weight = Arr::get($attributes, 'weight', $this->weight); - $this->priceTax = $this->price + $this->tax; $this->options = new CartItemOptions(Arr::get($attributes, 'options', $this->options)); $this->rowId = $this->generateRowId($this->id, $this->options->all());