// Pack : fixed isInStock()

This commit is contained in:
bMancone
2011-10-26 08:11:02 +00:00
parent aae3ea56a1
commit 51310f9f4b
+1 -1
View File
@@ -96,7 +96,7 @@ class PackCore extends Product
foreach ($items as $item)
{
// Updated for 1.5.0
if ($item->getQuantity() < $item->pack_quantity || !$item->isAvailableWhenOutOfStock((int)$item->getOutOfStock()))
if (Product::getQuantity($item->id) < $item->pack_quantity || !$item->isAvailableWhenOutOfStock((int)$item->getOutOfStock()))
return false;
}
return true;