Changed direct accesses to verifyStok by calls to checkAvailableStock
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user