/includes/classes/shopping_cart.php
around line 1530 you'll see this section of code.
Add the new lines as shown:
Code:
function actionUpdateProduct($goto, $parameters) {
global $messageStack;
for ($i=0, $n=sizeof($_POST['products_id']); $i<$n; $i++) {
$adjust_max= 'false';
if (!is_numeric($_POST['cart_quantity'][$i]) || $_POST['cart_quantity'][$i] < 0) {
$messageStack->add_session('header', ERROR_CORRECTIONS_HEADING . ERROR_PRODUCT_QUANTITY_UNITS_SHOPPING_CART . zen_get_products_name($_POST['products_id'][$i]), 'error');
continue;
}
Bookmarks