Community Forums 

Main Content

Re:Multiple input, options in one Form

    Jan 24 2015 14:26:00

    #1

    Bacchus

    Join date : 2014-12-04      Posts : 57

    GT said Why are you using discountpr when you only send one value (72) to the cart?

    To send multiple products to the cart, follow Mal's instructions and use addmulti.cfm and not add.cfm in the cart URL.

    Number your products, discountpr, qty as product1, discountpr1 etc and for the next product that you want to charge for, use product2, qty2 etc.

    I suggest you clear your pages of errors as well:
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.aoweb.com%2Fimprint12.html&charset=%28detect+automatically%29&doctype=Inline&group=0


    Got it finally. Thanks for pointing the way and for those who follow, one item w discounts, one or more options (color, size, etc) , adding a fixed cost and a text area here i is one that works:
    <input type="hidden" name="userid" value="xxxxxxxx">
    <input type="hidden" name="product1" value="Wine Party Plate">
    <input type="hidden" name="discountpr1" value ="71,x.xx:72,2.50:107,2.36:249,2.29:501,1.99:0,1.89">
    <input type="hidden" name="return" value="www.xxxxxx.com/imprintx.html">;;
    <input type="hidden" name="units1" value="0.25">
    <input type="hidden" name="tax" value="0">
    <input type="hidden" name="qty1" value="1">

    <p>Quantity: <input type="text" name="qty1" size="5">
    Select Round or Square Plate :
    <select name="product1[]">
    <option value="Wine Party Plate Round"> Select Round or Square</option>
    <option value="Wine Party Plate Round"> Round </option>
    <option value="Wine Party Plate Square">Square</option>
    </select></p>

    One Time Die Set Up Charge $45.00
    <input type="hidden" name="product2" value="One Time Die Set Up Charge">
    <input type="hidden" name="price2" value="45.00">
    <input type="checkbox" name="qty2" value="1" ><br>

    <p><b>For imprinting your text enter what you want imprinted here</b> Enter Here<br>
    <textarea name="product1[]" rows="3" cols="60"></TEXTAREA>
    <br><br>

    Bacchus