This commit is contained in:
jitendra 2019-10-11 12:11:07 +05:30
parent a3bb10a8b6
commit 0864dd5d1a
1 changed files with 3 additions and 1 deletions

View File

@ -143,6 +143,8 @@ class Cart {
$cartProducts = $product->getTypeInstance()->prepareForCart($data);
if (is_string($cartProducts)) {
$this->collectTotals();
throw new \Exception($cartProducts);
} else {
$parentCartItem = null;
@ -168,7 +170,7 @@ class Cart {
$this->collectTotals();
return $cart;
return $this->getCart();
}
/**