Community Forums 

Main Content

Form

    Apr 14 2009 18:15:48

    #1

    traffic457

    Join date : 2009-03-18      Posts : 11

    Hello,
    I got a problem I've a form where user could click on radio button to choose different size sign and by doing it the price of the item should change too, but for some reason when I add to cart the price does nor change. I can not figure out how to do it. I would appreciate any help.
    Thank you
    Bob
    <form action="http://ww12.aitsafe.com/cf/addmulti.cfm"; method="post">
    <span class="style17">
    <input type="hidden" name="userid" value="E3164626">
    <input type="hidden" name="product1[]" value="Extruded Street Sign EG">
    <!--<INPUT TYPE="HIDDEN" NAME="discountpr1" VALUE="24,25.00:75,21.25:0,17.50"> -->
    <!--<input type="hidden" name="scode" value="sign:SIGNRP-11812"> -->
    <input type="hidden" name="units" value="5">
    </span>
    <table width="733" border="1" cellpadding="0" cellspacing="0" bordercolor="#EAEAEA">
    <tr>
    <td width="281" bgcolor="#FFFF66"><span class="style44">Product</span></td>
    <td width="295" bgcolor="#FFFF66"><span class="style44">Material</span></td>
    <td width="80" bgcolor="#FFFF66"><span class="style44">QUANTITY</span></td>
    <td width="67" bgcolor="#FFFF66">&nbsp;</td>
    </tr>
    <tr>
    <td height="458" valign="top" bgcolor="#FFFFFF" class="style25">2 way signs<p align="left" class="style25">Choose blank size

    <p align="left">
    <input type="radio" name="product1[2]" value="24x6" />
    <input type="hidden" name="price1[1]" value="10.00">

    24&quot;x6&quot;
    <input type="radio" name="product1[2]" value="24x9">
    24&quot;x9&quot;</p>
    <input type="hidden" name="price1[1]" value="20.00">
    <p align="left">
    <input type="radio" name="product1[2]" value="30x6" />
    30&quot;x&quot;6
    <input type="hidden" name="price1[1]" value="25.00">
    <input type="radio" name="product1[2]" value="30x9">
    30&quot;x9&quot;</p>
    <p>
    <input type="radio" name="product1[2]" value="36x6">
    36&quot;x6&quot;
    <input type="hidden" name="price1[1]" value="30.00">
    <input type="radio" name="product1[2]" value="36x6">
    36&quot;x9&quot;
    <input type="hidden" name="price1[1]" value="40.00"> </p>
    </p></p>
    <input type="hidden" name="product1[4]" value="Line 1" />
    <p align="left" class="style25"> Please type street name here
    <input name="product1[4]" type="text" value="" size="20" maxlength="10" />
    </p>
    <p align="left" class="style25">for 4 way sign type additional name here
    <p align="left" class="style25"><input type="hidden" name="product1[5]" value="Line 2" />
    <p align="left" class="style25">
    <input name="product1[5]" type="text" value="" size="20" maxlength="10" />
    </td>
    <td valign="top" bgcolor="#FFFFFF" class="style25">
    <p>Choose blank color </p>
    <p>
    <input type="radio" name="product1[6]" value="white blank">
    White</p>
    <p><input type="radio" name="product1[6]" value="green blank">
    Green</p>
    <p><input type="radio" name="product1[6]" value="black blank">
    Black</p>
    <p><input type="radio" name="product1[6]" value="blue blank">
    Blue<label> </label>
    </p>

    Choose text color
    <p><input type="radio" name="product1[7]" value="black text">
    Black</p>
    <p><input type="radio" name="product1[7]" value="white text">
    White<br />
    </p></td>

    <td bgcolor="#FFFFFF"><span class="style17 style6">
    <input name="qty1" type="text" id="qty1" size="4" maxlength="4" />
    </span></td>
    <td><span class="style17">
    <input type="hidden" name="return" value="www.trafficsafetydirect.com/signs_street.html">;
    <input type=submit value="Buy Now" />
    </span></td>
    </tr>
    </table>
    <label>
    <p></p>
    <p>&nbsp;</p>
    </form>



    Apr 14 2009 20:09:51

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4996

    Use productpr1 for your radio buttons that effect the price.

    <input type="radio" name="productpr1" value="24x6 :10.00" />
    24"x6"
    <input type="radio" name="productpr1" value="24x9 :20.00" />
    24"x9"</p>
    <p align="left">
    <input type="radio" name="productpr1" value="30x6 :25.00" />
    30"x"6
    <input type="radio" name="productpr1" value="30x9 :30.00" />
    30"x9"</p>
    <p>
    <input type="radio" name="productpr1" value="36x6 :40:00" />
    36"x6"
    <input type="radio" name="productpr1" value="36x9 :40.00" />

    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.




    Apr 14 2009 20:24:54

    #3

    traffic457

    Join date : 2009-03-18      Posts : 11

    Thank You!;)

    Debbie Q said: Use productpr1 for your radio buttons that effect the price.

    <input type="radio" name="productpr1" value="24x6 :10.00" />
    24"x6"
    <input type="radio" name="productpr1" value="24x9 :20.00" />
    24"x9"</p>
    <p align="left">
    <input type="radio" name="productpr1" value="30x6 :25.00" />
    30"x"6
    <input type="radio" name="productpr1" value="30x9 :30.00" />
    30"x9"</p>
    <p>
    <input type="radio" name="productpr1" value="36x6 :40:00" />
    36"x6"
    <input type="radio" name="productpr1" value="36x9 :40.00" />