Community Forums 

Main Content

Code Help for add.cfm

    Apr 21 2014 14:52:16

    #1

    Flaggfish

    Join date : 2008-09-23      Posts : 77

    I have normally used pulldown menus for the carts I've made, but on this next one there will be one item with a series of options in radio buttons as well as some text fields. I can't believe I can't figure this out, but how do I take the page below and just have it add Nature Stocking to the cart along with the added options?
    http://jboyerdesign.com/sites/dethloff/nature-stockings



    Apr 21 2014 15:24:23

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    Remove this: <input type="hidden" name="qty1" value="1">
    <select name="productpr" size="1">
    <option value="Nature Stocking:53.50">Nature Stocking</option>
    </select>


    Replace with this:
    <INPUT TYPE="HIDDEN" NAME="product[]" VALUE="Nature Stocking">
    <INPUT TYPE="HIDDEN" NAME="price" VALUE="53.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.