Community Forums 

Main Content

Multiple input, options in one Form

    Jan 23 2015 11:50:16

    #1

    Bacchus

    Join date : 2014-12-04      Posts : 57

    Need 3 elements in a Form selling items at quantity discounts:
    1 price using dicountpr
    2 option for two colors
    3 add a fixed price for a service (no weight)

    Creating a form with #1 and #2 is no problem, but #3 adding another price - a fixed cost for the customer to choose/not choose is not working. Suggestions?

    Bacchus




    Jan 23 2015 12:19:45

    #2

    GT

    Join date : 2008-09-18      Posts : 3207

    Without seeing your whole form, it is impossible to say.

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

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




    Jan 23 2015 13:03:39

    #3

    Bacchus

    Join date : 2014-12-04      Posts : 57

    GT said Without seeing your whole form, it is impossible to say.

    Thank you. Here's the whole form, but without a solution for adding a fixed charge that will carry into the shopping cart.

    <form action="http://ww8.aitsafe.com/cf/add.cfm"; method="post">
    <input type="hidden" name="userid" value="A1306923">
    <input type="hidden" name="product[]" value="Wine Party Plate">
    <input type="hidden" name="discountpr" value ="71,x.xx:143,2.50:250,2.36:499,2.29:999,1.99;0,1.89">
    <input type="hidden" name="return" value="www.aoweb.com/imprint12.html">;
    <input type="hidden" name="units" value="1">
    <input type="hidden" name="tax" value="0">
    <input type="hidden" name="qty" value="72">
    <select name="product[]">
    <option value="Square Plate 8 x 8 in">Square Plate 8 x 8 in</option>
    <option value="Round Plate 9 in">Round Plate 9 in</option>
    </select>

    PREFERRED LOCATION FOR A FIXED CHARGE OPTION/INPUT

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

    <p><b>Please indicate the font and color</b> <br>
    Font suggestions are Here: <p><a href="/imprintfont.html"><b>Font Selections</b></a><br><br>

    A color chart for choosing a color is Here: <p><a href=www.aoweb.com/corklso.html"><b>Color Selections</b></a><br><br>
    Enter Text Here<br>
    <textarea name="product[]" rows="3" cols="60">
    </TEXTAREA>
    <INPUT type="image" src="images/cartadd.gif">
    </FORM>

    Bacchus




    Jan 24 2015 11:42:19

    #4

    GT

    Join date : 2008-09-18      Posts : 3207

    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

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

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




    Jan 24 2015 12:08:13

    #5

    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


    I defaulted to this approach using add multi.cfm for listing the products at different price points based on quantity. However I still don't see how to get the other 2 by your reply unless you're suggesting these be productX also. The fixed charge can set up that way. But is it not possible to have a Select Option or Is it into a products the only solution if using addmulti?
    2 option for two colors
    3 add a fixed price for a service (no weight)

    Thanks.
    When installing this shopping cart is over I'll deal with the pages. thanks.

    Bacchus




    Jan 24 2015 14:26:00

    #6

    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