thanks for your respond & proposal. I tried this adaption with the following result:
If I have in the cart the quantity of 1 and I try to overwrite the quantity with 5 the result is 3. I can add values to the quantity in steps with a max of 2. But my goal is the have a absolute max. quantity of 2. Any idea?
function dbAddBasketProduct in core/orders-ff.php change line: $aFile[$i] = $aExp.'$'.$aExp.'$'.$aExp.'$'.sprintf( '%01.0f', $aExp + $iQuantity ).'$'.$aExp."$\n"; to $iQuantityAll = sprintf( '%01.0f', $aExp + $iQuantity ); if( $iQuantityAll > 2 ) $iQuantityAll = 2; $aFile[$i] = $aExp.'$'.$aExp.'$'.$aExp.'$'.$iQuantityAll .'$'.$aExp."$\n"; i dont test it but i think it will work fine
thanks for the solution! It works fine. The background for your information: I need this function due to the fact, that the delivery costs are independent from the quantitiy. If I have to deliver up to a quantity of 6 the delivery price will be the same...
For my easy shop it is absolutely ok to have only one quantity-limitation for all products (less amount).
Greeting from Germany...
ohh... now I have found a problem... If the basket is empty... and I go to the products...Then I press a product image and enter a quantity of 999... the basket takes over this quantity of 999.