// 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
This commit is contained in:
jBreux
2011-12-22 22:03:13 +00:00
parent 2aeae17ba6
commit 04b3b0ac5e
+5
View File
@@ -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;