fix issue with the priceTax value that is not dynamically retrieved

This commit is contained in:
sartoric
2020-01-09 19:15:48 +01:00
parent 7d4704b413
commit de1bf2a5ea

View File

@@ -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());