mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 15:41:24 +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->id = $item->getBuyableIdentifier($this->options);
|
||||||
$this->name = $item->getBuyableDescription($this->options);
|
$this->name = $item->getBuyableDescription($this->options);
|
||||||
$this->price = $item->getBuyablePrice($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->name = Arr::get($attributes, 'name', $this->name);
|
||||||
$this->price = Arr::get($attributes, 'price', $this->price);
|
$this->price = Arr::get($attributes, 'price', $this->price);
|
||||||
$this->weight = Arr::get($attributes, 'weight', $this->weight);
|
$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->options = new CartItemOptions(Arr::get($attributes, 'options', $this->options));
|
||||||
|
|
||||||
$this->rowId = $this->generateRowId($this->id, $this->options->all());
|
$this->rowId = $this->generateRowId($this->id, $this->options->all());
|
||||||
|
|||||||
Reference in New Issue
Block a user