Community Forums 

Main Content

a productpr select price, a select option, a text box in one Form

    Jan 26 2015 09:36:53

    #1

    Bacchus

    Join date : 2014-12-04      Posts : 57

    I'm unable to get the 2nd Select Option in this Form to appear / append in the shopping cart view. Is it that it's not possible? there's a code error? Have tried many variants but will not show. The description and price shows, the text box entry does appear in shopping cart. Thanks any assistance.
    <FORM METHOD="POST"
    ACTION="http://ww8.aitsafe.com/cf/add.cfm">;
    <INPUT TYPE="HIDDEN" NAME="userid" VALUE="xxxxxxx">
    <INPUT TYPE="HIDDEN" NAME="scode" value="pm612cb pm612db pm512cbx pm512dbx">

    <input type="TEXT" size="4" name="qty" value="1">Quantity
    <input type="hidden" name="return" value="www.sssss'html">
    <input type="hidden" name="units" value="5.0">
    <input type="hidden" name="tax" value="0">


    <SELECT name="productpr">
    <OPTION VALUE= SELECTED>Select Engrave Type and Price
    <OPTION VALUE="Peppermill Engraved No Logo :46.99">Engraved No Logo : $46.99
    <OPTION VALUE="Peppermill Engraved with Logo :46.99">Engraved with Logo : $46.99
    <OPTION VALUE="Peppermill Engraved with Gold Fill No Logo :46.99">Engraved with Gold Fill No Logo : $54.99
    <OPTION VALUE="Peppermill Engraved with Gold Fill with Logo : 54.99">Engraved with Gold Fill with Logo : $54.99
    </SELECT>
    <br><br>
    <SELECT name="product1[]">
    <OPTION VALUE= SELECTED>Select Peppermill Bottle and Color
    <OPTION value="Burgundy Bottle Clear" > Burgundy Bottle Clear </OPTION>
    <OPTION value="Burgundy Bottle Dark" > Burgundy Bottle Dark </OPTION>
    <OPTION value="Bordeaux Bottle Clear" > Bordeaux Bottle Clear </OPTION>
    <OPTION value="Bordeaux Bottle Dark" > Bordeaux Bottle Dark </OPTION>
    </SELECT>

    <br><br>
    Enter your text for engraving below. <br>

    <textarea name="product" rows="2" cols="40"></TEXTAREA>
    <INPUT type="image" src="images/cartadd.gif">
    </FORM> </font>

    Bacchus




    Jan 26 2015 12:07:07

    #2

    Alan

    Join date : 2008-09-18      Posts : 2950

    Remove the '1' from
    <SELECT name="product1[]">

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




    Jan 26 2015 13:50:30

    #3

    Bacchus

    Join date : 2014-12-04      Posts : 57

    Alan said Remove the '1' from
    <SELECT name="product1[]">


    Thank you Alan. It didn't solve the absence of the missing text from the product[] Select. The productpr Select text appears and the text from the text area box appears but nothing from product[] Select.
    Thoughts?

    Bacchus




    Jan 26 2015 14:51:44

    #4

    Alan

    Join date : 2008-09-18      Posts : 2950

    My understanding (http://www.mals-e.com/tpv.php?tp=2) is that you should have [] here on both products, i.e. including the text area. Without that, only the last product on the form is processed.

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




    Jan 26 2015 15:54:52

    #5

    Bacchus

    Join date : 2014-12-04      Posts : 57

    Alan said My understanding (http://www.mals-e.com/tpv.php?tp=2) is that you should have [] here on both products, i.e. including the text area. Without that, only the last product on the form is processed.

    Bingo!! and Victory at Sea That filled it in. Can't believe I hadn't tried this config.
    Many, many thanks. This was the last coding challenge I know of for the various ways we sell products. will finish up tomorrow and before going blind.

    Bacchus