[-] FO: Fix add to cart for product packs with no quantity and out of stock allowed #PSCFV-4788
This commit is contained in:
+1
-2
@@ -113,8 +113,7 @@ class PackCore extends Product
|
|||||||
foreach ($items as $item)
|
foreach ($items as $item)
|
||||||
{
|
{
|
||||||
// Updated for 1.5.0
|
// Updated for 1.5.0
|
||||||
if (Product::getQuantity($item->id) < $item->pack_quantity
|
if (Product::getQuantity($item->id) < $item->pack_quantity && !$item->isAvailableWhenOutOfStock((int)$item->out_of_stock))
|
||||||
|| (Product::getQuantity($item->id) < $item->pack_quantity && !$item->isAvailableWhenOutOfStock((int)$item->out_of_stock)))
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user