Announcement

Collapse
No announcement yet.

Drop Down Box

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

    Drop Down Box

    Hi everyone...

    Anychance of a little help? I would like to use a drop down box instead of the qty box in a product layout.

    i.e. rather than the user entering say a qty of 5, I would like to have a selection of qtys available i.e. 1, 5, 10 etc. from which the user can select one.

    This would then be stored in the qty field and carried over to the shopping card.

    Any ideas?

    Julian

    #2
    Hi Julian,

    Here's the html. Replace your quantity prompt code with this and replace the values with what you require.

    Code:
    <span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span><br>
    <select name="Q_<Actinic:Variable Name="ProductID"/>">
    <option value="10">10</option>
    <option value="20">20</option>
    <option value="30">30</option>
    <option value="40">40</option>
    <option value="50">50</option>
    <option value="60">60</option>
    <option value="70">70</option>
    <option value="80">80</option>
    <option value="90">90</option>
    <option value="100">100</option>
    </select>
    "Opportunities multiply as they are seized." - Sun Tzu

    Comment


      #3
      Thanks

      wow, thats got to be the fastest response I have ever had to a question.

      Thanks for your help.

      Julian

      Comment


        #4
        No worries.

        Just remember that Actinic uses global layouts so what you do to a layout on one page will be reflected on all the pages using that layout.
        "Opportunities multiply as they are seized." - Sun Tzu

        Comment

        Working...
        X