Merge pull request #230 from absemetov/patch-1

Update CartItem.php
This commit is contained in:
Rob Gloudemans
2016-10-12 18:21:12 +02:00
committed by GitHub

View File

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