Update Cart.php, fix CartItem::fromAttributes call

The CartItem::fromAttributes call is missing the $weight parameter, and the CartItemOptions don't work any more because of this.
This commit is contained in:
Pascal Kousbroek
2019-03-29 15:39:17 +01:00
committed by GitHub
parent 7b9b47039b
commit 4d302fb4a2

View File

@@ -710,7 +710,7 @@ class Cart
$cartItem = CartItem::fromArray($id);
$cartItem->setQuantity($id['qty']);
} else {
$cartItem = CartItem::fromAttributes($id, $name, $price, $options);
$cartItem = CartItem::fromAttributes($id, $name, $price, null, $options);
$cartItem->setQuantity($qty);
}