// BO product list optimization
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14186 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
de9e867b37
commit
1c6b42c48b
1 file changed
+2
@@ -2273,6 +2273,8 @@ class ProductCore extends ObjectModel
|
|||||||
if (!$id_cart && !isset($context->employee))
|
if (!$id_cart && !isset($context->employee))
|
||||||
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
|
||||||
|
$context->cart = $cur_cart;
|
||||||
}
|
}
|
||||||
|
|
||||||
$cart_quantity = 0;
|
$cart_quantity = 0;
|
||||||
|
|||||||
Reference in new issue
Block a user