// Fix adding pack to cart
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11701 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
e8a3c10175
commit
16861c4d03
1 file changed
+6
@@ -828,6 +828,12 @@ class CartCore extends ObjectModel
|
|||||||
|
|
||||||
$result2 = Db::getInstance()->getRow($sql);
|
$result2 = Db::getInstance()->getRow($sql);
|
||||||
|
|
||||||
|
// Quantity for product pack
|
||||||
|
if (Pack::isPack($id_product))
|
||||||
|
{
|
||||||
|
$result2['quantity'] = Pack::getQuantity($id_product, $id_product_attribute);
|
||||||
|
}
|
||||||
|
|
||||||
if (!Product::isAvailableWhenOutOfStock((int)$result2['out_of_stock']))
|
if (!Product::isAvailableWhenOutOfStock((int)$result2['out_of_stock']))
|
||||||
if ((int)$quantity > $result2['quantity'])
|
if ((int)$quantity > $result2['quantity'])
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in new issue
Block a user