Issue #1592 fixed
This commit is contained in:
parent
a3bb10a8b6
commit
0864dd5d1a
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue