View Full Version : changing input type on quantity
alip
01-Jul-2003, 11:44 AM
i would just like to know if there is a way in which to change the quantity input box from text to a select box. i have a predetermined number for the quantity that one might order and would not like to rely on the user inputting an amount manually. i would like them to choose from a select box as these amounts are the only options. Any help???
Hi Alison
The best way to achieve this is to use component, attribute, choices to create permutations of the product for the various quantities, i.e.
Product
- Variation (component)
-- Quantity (attribute - double click to select drop down list)
--- 1 (choice)
--- 2 (choice)
--- 3 (choice)
This will allow customers to choose the quantity from a drop down list. Then select 1 as the maximum quantity in Product Details on the General tab and select the shopping mode as 'Quantity on Confirmation Page'.
Hope this helps.
alip
02-Jul-2003, 01:26 PM
Many thanks Ben, tried that and it works a treat.:D
NormanRouxel
02-Jul-2003, 02:52 PM
You can also just change the NETQUOTEVAR:PRODUCTQUANTITY in Act_ProductLine.html to be:-
<!-- NETQUOTEVAR:PRODUCTQUANTITY -->
Quantity <select name="Q_NETQUOTEVAR:PRODUCTREFERENCE">
<option value="0" selected>0
<option value="1">1
<option value="2">2
<option value="3">3
</select>
This will mean that all products using that template will automatically have a pre set range available without any fiddling with permutations. The numbers don't have to be sequential, you could have 1,3,5,10,etc.
Norman
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.