Community Forums 

Main Content

Dropdown changes price

    Oct 18 2010 09:59:46

    #1

    Nick French

    Join date : 2008-09-18      Posts : 63

    Ahh! This is driving me mad. I have a product with a set price, but it has options to it that can be added to or subtract from the price. Here is what I have, but I just can't get it to work:

    <form action="http://ww11.aitsafe.com/cf/addmulti.cfm"; method="post">
    <input type="hidden" name="userid" value="D8140873">
    <input type="hidden" name="return" value="www.daqua.co.uk/poles_brushes.htm">;
    <input type="hidden" value="1" name="qty1">
    <input type="hidden" name="price1" value="152.66">

    GXTEL-20 product &pound;152.66<br />
    <input type="hidden" name="product1" value="GXTEL-20">

    Options:<br />
    <input type="hidden" value="1" name="qty2">
    <select name="product2">
    <option selected value="">Select your Option</option>
    <option value="Pole Only, :0.00">Pole Only &pound;0.00</option>
    <option value="Pole with Brush, :10.00">Pole with Brush add &pound;10.00</option>
    <option value="Pole without Hose, :-20.00">Pole without Hose subtract &pound;-20.00</option>
    </select>

    <input type="submit" value="Buy Now">
    </form>

    http://www.nickfrench.co.uk




    Oct 18 2010 11:52:36

    #2

    Alan

    Join date : 2008-09-18      Posts : 2950

    productpr2?

    Alan
    Some shipping help documents are available at www.stoner.org.uk/mals/




    Oct 18 2010 12:59:54

    #3

    GT

    Join date : 2008-09-18      Posts : 3207

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

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




    Oct 18 2010 14:06:49

    #4

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    You do not have 2 products you have one. Just use the drop down and productpr

    <form action="http://ww11.aitsafe.com/cf/add.cfm";; method="post">
    <input type="hidden" name="userid" value="D8140873">
    <input type="hidden" name="return" value="www.daqua.co.uk/poles_brushes.htm">;;
    GXTEL-20 product &pound;152.66<br />
    Options:<br />
    <select name="productpr">
    <option selected value="">Select your Option</option>
    <option value="GXTEL-20 Pole Only, :152.66">Pole Only </option>
    <option value="GXTEL-20 Pole with Brush, :162.66">Pole with Brush add &pound;10.00</option>
    <option value="GXTEL-20 Pole without Hose, :132.66">Pole without Hose subtract &pound;-20.00</option>
    </select>
    <input type="submit" value="Buy Now">
    </form>

    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.




    Oct 18 2010 14:24:08

    #5

    Nick French

    Join date : 2008-09-18      Posts : 63

    Thanks GT - not my site but will them know.

    Thanks Debbie - couldn't see the wood from the trees!

    http://www.nickfrench.co.uk