// 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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user