Merge pull request #1600 from jitendra-webkul/jitendra
Issue #1592 fixed
This commit is contained in:
commit
f8f7df4125
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"/js/shop.js": "/js/shop.js?id=e218d2c5c1c6fcfc67fc",
|
||||
"/css/shop.css": "/css/shop.css?id=c9962e07f761468e22a1"
|
||||
"/css/shop.css": "/css/shop.css?id=ef5b860d29792023de5b"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue