From 5b1cacca66fdef4c11f034b6879b5d2d186ccfa1 Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Thu, 15 Mar 2012 09:51:16 +0000 Subject: [PATCH] // BO product list optimization --- classes/Product.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/Product.php b/classes/Product.php index 78dfb1efb..74d9085b0 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -2273,6 +2273,8 @@ class ProductCore extends ObjectModel if (!$id_cart && !isset($context->employee)) die(Tools::displayError()); $cur_cart = new Cart($id_cart); + // Store cart in context to avoid multiple instantiations in BO + $context->cart = $cur_cart; } $cart_quantity = 0;