
Originally Posted by
CarolineBogart
I hope this helps the people on this thread.
The store I'm debugging has both items priced by stock attributes and items not priced by stock attributes.
For items not priced by attributes, if the customer asked for a quantity greater than that in stock, but the "out of stock" message did not display.
In priced by attributes version 1.4.13, in
includes/modules/pages/shopping_cart/header_php.php,
the code to check for "out of stock" on items not priced by attributes is commented out.
Uncomment these lines at about line 146:
if (STOCK_CHECK == 'true') {
$flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity']);
if ($flagStockCheck == true) {
$flagAnyOutOfStock = true;
}
}
Bookmarks