Community Forums 

Main Content

Quantity Box

    Sep 29 2008 20:20:56

    #1

    adamci

    Join date : 2008-09-18      Posts : 3

    I have no idea what i'm doing wrong, but I can't get my quantity box to pass the quantity over my cart...

    Here is my code:

    <form action="http://ww11.aitsafe.com/cf/add.cfm"; method="post">&#8232;
    <input name="userid" type="hidden" value="XXXXXXX" />&#8232;
    <input name="return" type="hidden" value="www.example.com/store/store.html"; />&#8232;
    <input type="hidden" name="product1" value="PRODUCT">
    <input type="hidden" name="price1" value="3.49">
    <strong><font size="2"><font color="#000000">Qty: </font><input type="text" name=qty1 size="3"> lb
    <br>
    <input type="image" src="http:www.example.com/images/cart1.png"; alt="Add to Cart" value="submit">
    </form>

    I get "SET PRICE" error. I am only sending one product. I just want to user to type in any amount 1-9999 and have that multiplied by 3.49 and sent to the cart.



    Sep 30 2008 10:51:06

    #2

    Sandi Myers

    Join date :      Posts : 0

    I tested your code - the problem is, you are using add.cfm, but treating the inputs as multi.

    you need to use product, price, qty - not product1, price1, qty1 - unless you want to use addmulti.cfm

    Sandi