I finally had a chance to take a look at this myself. I'm looking specifically at the function that controlls adding multiple products to cart (since i altered my category listing page). To do this open shopping_cart.php in the includes\classes folder, then look for:
Code:
function actionMultipleAddProduct($goto, $parameters) {
Change the function so it reads as follows:
Code:
function actionMultipleAddProduct($goto, $parameters) {
global $messageStack;
while ( list( $key, $val ) = each($_POST['products_id']) ) {
if ($val > 0) {
$prodId = $key;
$qty = $val;
$add_max = zen_get_products_quantity_order_max($prodId);
//$cart_qty = $this->in_cart_mixed($prodId);
$new_qty = $qty;
if (($add_max == 1 and $cart_qty == 1)) {
// do not add
$adjust_max= 'true';
} else {
// adjust quantity if needed
if (($new_qty > $add_max) and $add_max != 0) {
$adjust_max= 'true';
$new_qty = $add_max;
}
$this->add_cart($prodId, ($new_qty));
}
if ($adjust_max == 'true') {
$messageStack->add_session('shopping_cart', ERROR_MAXIMUM_QTY . ' - ' . zen_get_products_name($prodId), 'caution');
}
}
}
zen_redirect(zen_href_link($goto, zen_get_all_get_params($parameters)));
}
I'm now working on making the input boxes display the current cart quantity but that shouldn't be as difficult to track down.