This technique will replace the usual text field for entering a product quantity on the product page, with a drop-down list for customers to select how many they want.
On the 'Design' tab, go to a store page where you can see a 'Quantity' field. Click on the 'Quantity' text – and just after it, you should see this line:
<input type="text" name="Q_ProductID" size="4" value="DefaultQuantity" class="form_input_general" />
Replace HTML tag with the following:
<select name="Q_<Actinic:Variable Name="ProductID"/>"><option selected value="<Actinic:Variable Name="DefaultQuantity"/>">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option></select>
This code contains options up to '9' – but you can easily adapt it for more or fewer items.
On the 'Design' tab, go to a store page where you can see a 'Quantity' field. Click on the 'Quantity' text – and just after it, you should see this line:
<input type="text" name="Q_ProductID" size="4" value="DefaultQuantity" class="form_input_general" />
Replace HTML tag with the following:
<select name="Q_<Actinic:Variable Name="ProductID"/>"><option selected value="<Actinic:Variable Name="DefaultQuantity"/>">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option></select>
This code contains options up to '9' – but you can easily adapt it for more or fewer items.