Community Forums 

Main Content

One item with three options and a price/size issue

    Feb 13 2015 16:59:10

    #1

    webgirl

    Join date : 2015-02-13      Posts : 4

    Hi there -

    I have a cart with apparel that comes in a choice of colors, sizes, and logo imprints. The larger sizes have a different price, that is XS - XL is one price and 2XL - 4XL is another price. There is then a one-time additional charge for personalization. Everything is passing to the cart, except the size and price detail.

    I hope this is a minor fix, if anyone has advice please help!

    Thank you.



    <form action="http://ww8.aitsafe.com/cf/addmulti.cfm"; method="post">
    <input type="hidden" name="userid" value="xxxxxxxx">
    <input type="hidden" name="product1[]" value=" F219 Men's Fleece Vest">
    <input type="hidden" name="qty1" value="1">
    <select name="product1[]">
    <option value="Iron Grey">Iron Grey</option>
    <option value="True Navy">True Navy</option>
    <option value="Black">Black</option>
    </select>
    <select name="productpr">
    <option value="XS:25"> XS </option>
    <option value="S:25"> S </option>
    <option value="M:25"> M</option>
    <option value="L:25"> L </option>
    <option value="XL:25"> XL </option>
    <option value="2XL:27.5"> 2XL </option>
    <option value="3XL:27.5"> 3XL </option>
    <option value="4XL:27.5"> 4XL </option>
    </select>
    <select name="product1[]">
    <option value="NSMC Logo"> NSMC logo </option>
    <option value="Mass General for Children Logo"> Mass General for Children logo </option>
    </select>
    <br />
    <input type="checkbox" name="qty2" value="1" onclick="Reveal('div1', this)" /> Add Name (+$5.00)<div class="row" id="div1" style="display:none">
    Type Name (exactly as you would like it printed)

    <br>
    <input type="hidden" name="product2[]" value="Personalized:,">
    <input type="hidden" name="price2" value="5.00">
    <textarea name="product2[]" rows="1" cols="20"></textarea>

    </div>

    <script type="text/javascript">
    function Reveal (it, box) {
    var vis = (box.checked) ? "block" : "none";
    document.getElementById(it).style.display = vis;
    }
    function Hide (it, box) {
    var vis = (box.checked) ? "none" : "none";
    document.getElementById(it).style.display = vis;
    }
    </script>

    <input type="Submit" value="Buy now">
    </form>



    Feb 13 2015 17:04:08

    #2

    GT

    Join date : 2008-09-18      Posts : 3207

    Change productpr to productpr1

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Feb 13 2015 17:18:23

    #3

    webgirl

    Join date : 2015-02-13      Posts : 4

    Thank you!