I have a product X with "Product Qty Maximum:" set to 3
On a page with multiple products added to the shopping cart, If I try to add 5 to the shopping cart along with some other products, I get the error
"Qty Adjusted - Maximum Qty Added to Cart - Product name x"
but I get it not only for product X, but also any products in the cart below product X

Only the qty for product X gets adjusted...the others are fine even though the error shows up.

I did some digging and found that the $adjust_max was not set to false in the beginning of the function, and so every product after the product X was also flagged for the error to show up.

includes/classes/shopping_cart.php

Original code:

function actionMultipleAddProduct($goto, $parameters) {
global $messageStack;
while ( list( $key, $val ) = each($_POST['products_id']) ) {
if ($val > 0) {


add this to line after while starts:
$adjust_max= 'false';

my edited code:

function actionMultipleAddProduct($goto, $parameters) {
global $messageStack;
while ( list( $key, $val ) = each($_POST['products_id']) ) {
$adjust_max= 'false';
if ($val > 0) {