[-] Core: Fix bad card context assignation
This commit is contained in:
1 parent
13bc57517a
commit
6a8c5d4b82
1 file changed
+2
-1
+2
-1
@@ -2274,7 +2274,8 @@ class ProductCore extends ObjectModel
|
|||||||
die(Tools::displayError());
|
die(Tools::displayError());
|
||||||
$cur_cart = new Cart($id_cart);
|
$cur_cart = new Cart($id_cart);
|
||||||
// Store cart in context to avoid multiple instantiations in BO
|
// Store cart in context to avoid multiple instantiations in BO
|
||||||
$context->cart = $cur_cart;
|
if (!Validate::isLoadedObject($context->cart))
|
||||||
|
$context->cart = $cur_cart;
|
||||||
}
|
}
|
||||||
|
|
||||||
$cart_quantity = 0;
|
$cart_quantity = 0;
|
||||||
|
|||||||
Reference in new issue
Block a user