Announcement

Collapse
No announcement yet.

How can I replace the 'quantity' text field on the product pages with a drop-down...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How can I replace the 'quantity' text field on the product pages with a drop-down...

    How can I replace the 'quantity' text field on the product pages with a drop-down list for selecting quantity?

    On the Design Tab, click on the 'Quantity:' text and look in the 'Layout Code' view (below Preview), you will see this bit of text highlighted "QuantityPrompt" followed by

    <input type="text" name="Q_<actinic:variable name="ProductReference" />" size="4" value="<actinic:variable name="DefaultQuantity" />" />

    Replace this line with the following code

    <select name="Q_<actinic:variable name="ProductReference" />" />
    <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.

    This change will only take place on the particular layout being used for the product. If using alternate layouts for other sections / products you will have to replicate the above steps in the respective layout.
Working...
X