Skip to content

Commit

Permalink
Merge pull request #230 from absemetov/patch-1
Browse files Browse the repository at this point in the history
Update CartItem.php
  • Loading branch information
Crinsane authored Oct 12, 2016
2 parents 97ed51e + 2b59ca8 commit 8bccb54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CartItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function updateFromArray(array $attributes)
$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());
}
Expand Down

0 comments on commit 8bccb54

Please sign in to comment.