From 04b3b0ac5ed6a13d0a1921707b84ab2a2c66b15a Mon Sep 17 00:00:00 2001 From: jBreux Date: Thu, 22 Dec 2011 22:03:13 +0000 Subject: [PATCH] // Fix adding pack to cart O_o git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11704 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Cart.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/classes/Cart.php b/classes/Cart.php index fc16952b4..f256db2ab 100644 --- a/classes/Cart.php +++ b/classes/Cart.php @@ -786,6 +786,11 @@ class CartCore extends ObjectModel $result2 = Db::getInstance()->getRow($sql); $product_qty = (int)$result2['quantity']; + // Quantity for product pack + if (Pack::isPack($id_product)) + { + $product_qty = Pack::getQuantity($id_product, $id_product_attribute); + } $new_qty = (int)$result['quantity'] + (int)$quantity; $qty = '+ '.(int)$quantity;