diff --git a/src/CartItem.php b/src/CartItem.php index cbe5e21..450c340 100644 --- a/src/CartItem.php +++ b/src/CartItem.php @@ -211,7 +211,7 @@ class CartItem implements Arrayable $this->name = array_get($attributes, 'name', $this->name); $this->price = array_get($attributes, 'price', $this->price); $this->priceTax = $this->price + $this->tax; - $this->options = new CartItemOptions(array_get($attributes, 'options', [])); + $this->options = new CartItemOptions(array_get($attributes, 'options', $this->options)); $this->rowId = $this->generateRowId($this->id, $this->options->all()); }