Community Forums 

Main Content

Dropdown box with optional checkbox

    Sep 12 2008 18:19:14

    #1

    asiostudio

    Join date : 2008-09-18      Posts : 1

    Hello helpful folks,

    I am trying to put a "drop shipping service" check box on a store that only contains a selection of bikes selectable by a drop down box. The prices are all the same for the bikes, the drop down box is only to select the color. The "drop shipping service" check box is supposed to add $10 to the price of the order. Can anybody help me?

    Here is the code that I'm using:

    form method="post" action="http://ww10.aitsafe.com/cf/add.cfm">;

    <input type="hidden" name="return" value="http://www.stridersports.com/rep-products.html">;
    <input type="hidden" name="userid" value="C4298967">
    <input type="hidden" name="price" value="53.00">
    <input type="hidden" name="units" value="10" />
    <input type="hidden" name="product[]" value="Strider&#8482; Running Bike" >
    <input type="hidden" name="product2" value="Drop Shipping Service" >
    <input type="hidden" name="price2" value="10.00" >
    <input type="hidden" name="unit" value="10" >

    Give your kids a head start on learning balance and control of a two-wheeler! The Strider&#8482; running bike
    eliminates the need a for tricycle or training wheels and offers your child a vehicle he or she can have a blast
    riding for years. The Strider&#8482; develops muscles, coordination, motor skills, and endurance... all under the
    guise of sheer fun!
    <br /><br />

    <ul>
    <li>Super light. Less that 7 pounds (about 1/3 the weight of a typical 12&quot; pedal bike with training
    wheels). </li>
    <li>Puncture-proof all-terrain tires with sealed bearings and 5/16&quot; steel axles.</li>
    <li>Durable welded steel frame and handlebars</li>
    <li>1 year warranty against manufacturing defects</li>

    <li>Adjustable handlebar and seat height to fit riders from 30&quot; to 44&quot; tall (saddle height adjusts from 11&quot; to 16&quot; from ground)</li>
    <li>Paint certified to be significantly below the ASTM limits for heavy metal content, including lead.</li>
    <li>Available in 6 colors (red, blue, yellow, green, orange, and pink)</li>

    <li>Rider weight limit of 50 pounds.</li>
    <li>Unique frame design has integrated footrests for gliding.</li>
    </ul>
    <strong>Select Color:</strong>
    <br />
    <select name="product[]" size="1">
    <option value="ST-1RD Red">Red
    <option value="ST-1YE Yellow">Yellow
    <option value="ST-1BL Blue">Blue
    <option value="ST-1OR Orange">Orange
    <option value="ST-1GN Green">Green
    <option value="ST-1PK Pink">Pink
    </select>

    <br /><br />
    <input name="qty2" value="1" type="checkbox">Add Drop Ship Service: $10.00
    <br /><br />

    <input type="image" src="http://www.stridersports.com/images/but-add.gif">;

    </form>

    Any help on this would be greatly appreciated.

    Dylan Fleming
    Asio Studio



    Sep 12 2008 18:30:56

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4996

    You need to use the form method addmulti and give each product a product number and you need a qty1 field. You need to name your color selection product1[]. You also need to remove the http:// from your return field value.

    <form method="post" action="http://ww10.aitsafe.com/cf/addmulti.cfm">;
    <input type="hidden" name="return" value="www.stridersports.com/rep-products.html">;
    <input type="hidden" name="userid" value="C4298967">
    <input type="hidden" name="price1" value="53.00">
    <input type="hidden" name="units1" value="10" />
    <input type="hidden" name="product1[]" value="Strider Running Bike" >
    <input type="hidden" name="qty1" value="1">

    <input type="hidden" name="product2" value="Drop Shipping Service" >
    <input type="hidden" name="price2" value="10.00" >

    <select name="product1[]" size="1">
    <option value="ST-1RD Red">Red </option>
    <option value="ST-1YE Yellow">Yellow </option>
    <option value="ST-1BL Blue">Blue </option>
    </select>
    <input name="qty2" value="1" type="checkbox">Add Drop Ship Service: $10.00

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

    My Create-A-Book Publishing - mycreateabook.com
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.