From 2b9f64b7906baed1094be9ccf5e0469151fa7de6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Thu, 10 Jan 2013 11:30:41 +0100 Subject: [PATCH] [-] FO: Fix add to cart for product packs with no quantity and out of stock allowed #PSCFV-4788 --- classes/Pack.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/Pack.php b/classes/Pack.php index 635335a7a..c06b9c003 100644 --- a/classes/Pack.php +++ b/classes/Pack.php @@ -113,8 +113,7 @@ class PackCore extends Product foreach ($items as $item) { // Updated for 1.5.0 - if (Product::getQuantity($item->id) < $item->pack_quantity - || (Product::getQuantity($item->id) < $item->pack_quantity && !$item->isAvailableWhenOutOfStock((int)$item->out_of_stock))) + if (Product::getQuantity($item->id) < $item->pack_quantity && !$item->isAvailableWhenOutOfStock((int)$item->out_of_stock)) return false; } return true;