I use version 3.3. I would wish to be able to limit the quantity of article in the basket to limit the number has 5 article maximum. either 5 by articles, or 5 on the whole in the basket. How I can make? thank you
1. Please describe it more exactly (what when i buy 3 pieces of article "A" and 4 pieces of "B"?); 2. What is your native language (if RU, DE, PL, then write in this language)?
Hello, i am french so please excuse me .. My english est not very good. I encounter a problem on the level of a Select product number inserted in my "orders_basket.tpl" page in order to limit the number of articles to be added in the basket of purchase. I sought hours but in vain…
I thus integrated a drop-down list has single choice instead of the numerical zone of seizure. the list appears without problem in the basket of purchase but when I modify it and that I click on the button “ recount” the entire amount calculation indeed but the number of articles in the basket goes back by default to 1, which is impacted in the confirmation of order in the following page and the email sent to the customer and to the salesman. How can I preserve the value of the drop-down list to select at the time of the sending of the form or the click on the button of update?
But that does not work perfectly. The total price is good but the quantity goes back by default to the last line :quantity 5 when i click on "recount" button
How can i have the good quantity after clic recount in the basket ?
Try this hack: you could edit the templates/orders_basket.tpl file: <option value="1" $aData[sSelected1] >1</option> <option value="2" $aData[sSelected2] >2</option> etc...
and also actions_client/p.php or the core/orders.php listproducts() at a certain place: $aData['sSelected'.$aData['iQuantity']] = 'selected="selected" ';
there is a listproducts() in core/orders.php, at the very top of the file. You might have looked at wrong order.php. put in in right after: foreach( $this->aProducts as $aData ){