// 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:
1 parent
2aeae17ba6
commit
04b3b0ac5e
1 file changed
+5
@@ -786,6 +786,11 @@ class CartCore extends ObjectModel
|
|||||||
|
|
||||||
$result2 = Db::getInstance()->getRow($sql);
|
$result2 = Db::getInstance()->getRow($sql);
|
||||||
$product_qty = (int)$result2['quantity'];
|
$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;
|
$new_qty = (int)$result['quantity'] + (int)$quantity;
|
||||||
$qty = '+ '.(int)$quantity;
|
$qty = '+ '.(int)$quantity;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user