Changed direct accesses to verifyStok by calls to checkAvailableStock

This commit is contained in:
Franck Allimant
2013-12-05 13:02:13 +01:00
parent 8e56fcc651
commit de0542b33c
3 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ class Cart extends BaseCart
if ($product &&
$productSaleElements &&
$product->getVisible() == 1 &&
($productSaleElements->getQuantity() > $cartItem->getQuantity() || ! ConfigQuery::read("verifyStock", 1)))
($productSaleElements->getQuantity() > $cartItem->getQuantity() || ! ConfigQuery::checkAvailableStock()))
{
$item = new CartItem();