mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-11 18:54:33 +00:00
fix issue with the priceTax value that is not dynamically retrieved
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user