From 4d302fb4a20714e7f6b63cda2c1c67b29a231444 Mon Sep 17 00:00:00 2001 From: Pascal Kousbroek Date: Fri, 29 Mar 2019 15:39:17 +0100 Subject: [PATCH] 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. --- src/Cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cart.php b/src/Cart.php index cbb2699..51e2add 100644 --- a/src/Cart.php +++ b/src/Cart.php @@ -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); }