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[0].'$'.$aExp[1].'$'.$aExp[2].'$'.sprintf( '%01.0f', $aExp[3] + $iQuantity ).'$'.$aExp[4]."$\n"; to $iQuantityAll = sprintf( '%01.0f', $aExp[3] + $iQuantity ); if( $iQuantityAll > 2 ) $iQuantityAll = 2; $aFile[$i] = $aExp[0].'$'.$aExp[1].'$'.$aExp[2].'$'.$iQuantityAll .'$'.$aExp[4]."$\n"; i dont test it but i think it will work fine
Ch
2005-08-23 20:41
Hi wewior,
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...
Christian
Ch
2005-08-24 21:16
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.
Hi wewior, sorry for my late response... I have no site running up in the moment - I use only my local server for testing... the live system should start in the next days...
As interims solution I marked the following row as mark: $lang[Quantity]... line 57-59 file: templates/default/products_show.tpl