Community Forums 

Main Content

A shopping cart setup that will not advance on "add to cart"

    Oct 19 2017 14:16:00

    #1

    Bacchus

    Join date : 2014-12-04      Posts : 57

    Can anyone see an error that prevents this setup from working? On a Duda mobile page it does not work when clicking "add to cart". There is another setup on the same mobile web page, and looks the same to me, does work. In addition, on the actual desktop webpage when I go to enter a number for quantity, appears the little figure with up arrow that one gets in an "enter password" box.
    <form action="http://ww8.aitsafe.com/cf/addmulti.cfm"; method="post">
    <INPUT TYPE="HIDDEN" NAME="userid" VALUE="A1306923">
    <INPUT TYPE="HIDDEN" NAME="scode1" value="8537">
    <INPUT TYPE="HIDDEN" NAME="product1[]" VALUE="Indoor/Outdoor Wine Glass, Acrylic, 8 oz., One Color Imprint">
    <input type="hidden" name="discountpr1" value ="71,x.xx:72,3.75:456,3.50:0,2.75 ">
    <input type="hidden" name="return" value="www.mywebsite.com/glass.html">;
    <input type="hidden" name="units1" value=".40">

    <FONT FACE="arial, Helvetica, Sans-Serif" SIZE="+0" COLOR="#168F2E">
    <b>One Color Imprint</b></font>: <br>
    <FONT COLOR="#000000">Please check box for One Time Die Set Up Charge<BR>
    <b>Check the box </b>: $40.00</font>
    <input type="hidden" name="product3" value="One Time Die Set Up Charge One Color Imprint">
    <input type="hidden" name="price3" value="40.00">
    <input type="checkbox" name="qty3" value="1" >
    <br>
    Logo artwork file instructions: Send artwork file as .eps or .ai file, original artwork, black and white only.<BR>
    <a href="mailto: Artwork <artisans@aoweb.com> "><font color="#800000">** Click here to attach and e-mail your logo artwork file</font></a> <BR>
    <br>
    <FONT FACE="arial, Helvetica, Sans-Serif" SIZE="+0" COLOR="#333333">
    <b>ONE COLOR IMPRINT</b><br> $3.75 each to $2.75 each with quantity discounts <BR>
    72 to 143 glasses One Color Imprint - $3.75 each<BR>
    144 to 599 glasses One Color Imprint - $3.50 <BR>
    600 or more glasses One Color Imprint - $2.75<BR>
    </FONT>

    <p><FONT FACE="arial, Helvetica, Sans-Serif" SIZE="+0" COLOR="#168F2E"><b>Enter Quantity One Color Imprint - Minimum is 72 Glasses: </b>
    <input type="text" name="qty1" size="5"><br>
    <br>
    <b>For ONE COLOR Text Imprinting:<br> Enter your text, color and font name here</b>
    </font>.
    <BR><a href="/corklso.html"><font color="#000000">** Click here to view Pantone Color Chart to aid in color selection </a>
    <BR><a href="/imprintfont.html"><font color="#000000">** Click here to view font suggestions page</font></a>
    <br>If multiple lines, enter as Line 1: Line 2:, etc.
    <BR>If you are using a logo, send us your logo artwork: <br>
    <a href="mailto: Artwork <artisans@aoweb.com> "><font color="#800000">** Click here to attach and e-mail your logo artwork file</font></a> </font><br>
    <textarea name="product1[]" rows="3" cols="60">

    Bacchus




    Oct 19 2017 16:35:43

    #2

    GT

    Join date : 2008-09-18      Posts : 3202

    only part of the form here... give us the url of a page with the form on...

    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 19 2017 16:35:48

    #3

    Alan

    Join date : 2008-09-18      Posts : 2944

    You don't show your DOCTYPE or the end of the form but the following worked for me, apart from the validator objecting to font/color/face/size with this doctype. It might just have been the textarea not being closed.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">;
    <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
    <title>Key in all values</title>
    <!--- used when responding to a post by bacchus 19/10/2017 -->
    </head>
    <body><form action="http://ww8.aitsafe.com/cf/addmulti.cfm"; method="post">
    <p>
    <input type="hidden" name="userid" value="A1306923" />
    <input type="hidden" name="scode1" value="8537" />
    <input type="hidden" name="product1[]" value="Indoor/Outdoor Wine Glass, Acrylic, 8 oz., One Color Imprint" />
    <input type="hidden" name="discountpr1" value ="71,x.xx:72,3.75:456,3.50:0,2.75 " />
    <input type="hidden" name="return" value="www.mywebsite.com/glass.html"; />;
    <input type="hidden" name="units1" value=".40" />

    <font face="arial, Helvetica, Sans-Serif" size="+0" color="#168F2E">
    <b>One Color Imprint</b></font>: <br />
    <font color="#000000">Please check box for One Time Die Set Up Charge<br />
    <b>Check the box </b>: $40.00</font>
    <input type="hidden" name="product3" value="One Time Die Set Up Charge One Color Imprint" />
    <input type="hidden" name="price3" value="40.00" />
    <input type="checkbox" name="qty3" value="1" />
    <br />
    Logo artwork file instructions: Send artwork file as .eps or .ai file, original artwork, black and white only.<br />
    <a href="mailto: Artwork <artisans@aoweb.com> "><font color="#800000">** Click here to attach and e-mail your logo artwork file</font></a> <br />
    <br />
    <font face="arial, Helvetica, Sans-Serif" size="+0" color="#333333">
    <b>ONE COLOR IMPRINT</b><br /> $3.75 each to $2.75 each with quantity discounts <br />
    72 to 143 glasses One Color Imprint - $3.75 each<br />
    144 to 599 glasses One Color Imprint - $3.50 <br />
    600 or more glasses One Color Imprint - $2.75<br />
    </font>
    </p>
    <p><font face="arial, Helvetica, Sans-Serif" size="+0" color="#168F2E"><b>Enter Quantity One Color Imprint - Minimum is 72 Glasses: </b>
    <input type="text" name="qty1" size="5" /><br />
    <br />
    <b>For ONE COLOR Text Imprinting:<br /> Enter your text, color and font name here</b>
    </font>.
    <br /><a href="/corklso.html"><font color="#000000">** Click here to view Pantone Color Chart to aid in color selection </font></a>
    <br /><a href="/imprintfont.html"><font color="#000000">** Click here to view font suggestions page</font></a>
    <br />If multiple lines, enter as Line 1: Line 2:, etc.
    <br />If you are using a logo, send us your logo artwork: <br />
    <a href="mailto: Artwork <artisans@aoweb.com> "><font color="#800000">** Click here to attach and e-mail your logo artwork file</font></a> <br />
    <textarea name="product1[]" rows="3" cols="60">
    </textarea>
    <input type="submit" value="Add to cart" />
    </p>
    </form>
    </body>
    </html>

    Remember to remove the semicolons that creep in when posting here.

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




    Oct 19 2017 17:35:30

    #4

    Bacchus

    Join date : 2014-12-04      Posts : 57

    Hi Alan, Thanks the reply.
    I did not notice that the end of the Form was cut off when I pasted it to the Forum. The Text Area is closed on the html page. Here's the missing bit of the bottom of the Form:
    <textarea name="product1[]" rows="3" cols="60"></TEXTAREA>
    <br> <br>
    <INPUT type="image" src="images/cartadd.gif">
    </FORM>
    This is the page URL: http://www.aoweb.com/glass.html The desktop version is working fine. It's the converted Duda mobile version where this form isn't working. The mobile version is working for the product just below but for reasons I cannot determine this first item on the page
    will not add to cart.


    Alan said You don't show your DOCTYPE or the end of the form but the following worked for me, apart from the validator objecting to font/color/face/size with this doctype. It might just have been the textarea not being closed.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">;
    <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
    <title>Key in all values</title>
    <!--- used when responding to a post by bacchus 19/10/2017 -->
    </head>
    <body><form action="http://ww8.aitsafe.com/cf/addmulti.cfm"; method="post">
    <p>
    <input type="hidden" name="userid" value="A1306923" />
    <input type="hidden" name="scode1" value="8537" />
    <input type="hidden" name="product1[]" value="Indoor/Outdoor Wine Glass, Acrylic, 8 oz., One Color Imprint" />
    <input type="hidden" name="discountpr1" value ="71,x.xx:72,3.75:456,3.50:0,2.75 " />
    <input type="hidden" name="return" value="www.mywebsite.com/glass.html"; />;
    <input type="hidden" name="units1" value=".40" />

    <font face="arial, Helvetica, Sans-Serif" size="+0" color="#168F2E">
    <b>One Color Imprint</b></font>: <br />
    <font color="#000000">Please check box for One Time Die Set Up Charge<br />
    <b>Check the box </b>: $40.00</font>
    <input type="hidden" name="product3" value="One Time Die Set Up Charge One Color Imprint" />
    <input type="hidden" name="price3" value="40.00" />
    <input type="checkbox" name="qty3" value="1" />
    <br />
    Logo artwork file instructions: Send artwork file as .eps or .ai file, original artwork, black and white only.<br />
    <a href="mailto: Artwork <artisans@aoweb.com> "><font color="#800000">** Click here to attach and e-mail your logo artwork file</font></a> <br />
    <br />
    <font face="arial, Helvetica, Sans-Serif" size="+0" color="#333333">
    <b>ONE COLOR IMPRINT</b><br /> $3.75 each to $2.75 each with quantity discounts <br />
    72 to 143 glasses One Color Imprint - $3.75 each<br />
    144 to 599 glasses One Color Imprint - $3.50 <br />
    600 or more glasses One Color Imprint - $2.75<br />
    </font>
    </p>
    <p><font face="arial, Helvetica, Sans-Serif" size="+0" color="#168F2E"><b>Enter Quantity One Color Imprint - Minimum is 72 Glasses: </b>
    <input type="text" name="qty1" size="5" /><br />
    <br />
    <b>For ONE COLOR Text Imprinting:<br /> Enter your text, color and font name here</b>
    </font>.
    <br /><a href="/corklso.html"><font color="#000000">** Click here to view Pantone Color Chart to aid in color selection </font></a>
    <br /><a href="/imprintfont.html"><font color="#000000">** Click here to view font suggestions page</font></a>
    <br />If multiple lines, enter as Line 1: Line 2:, etc.
    <br />If you are using a logo, send us your logo artwork: <br />
    <a href="mailto: Artwork <artisans@aoweb.com> "><font color="#800000">** Click here to attach and e-mail your logo artwork file</font></a> <br />
    <textarea name="product1[]" rows="3" cols="60">

    Bacchus




    Oct 19 2017 17:37:34

    #5

    Bacchus

    Join date : 2014-12-04      Posts : 57

    GT, Thank you.
    I did not notice that the end of the Form was cut off when I pasted it here into the Forum. The Text Area is closed on the actual html page. Here's the missing bit of the bottom of the Form:
    <textarea name="product1[]" rows="3" cols="60"></TEXTAREA>
    <br> <br>
    <INPUT type="image" src="images/cartadd.gif">
    </FORM>

    This is the page URL: http://www.aoweb.com/glass.html


    GT said only part of the form here... give us the url of a page with the form on...

    Bacchus




    Oct 20 2017 07:25:49

    #6

    Bacchus

    Join date : 2014-12-04      Posts : 57

    After no remedies appeared here, I used another mal cart <form></form> that was working and trashed the problem mal cart Form. Fixed the problem In case it's useful to someone else I add this bit of information. I noticed in the Form now discarded that I'd used this which includes a "/" as you can see - between Indoor and Outdoor: <INPUT TYPE="HIDDEN" NAME="product1[]" VALUE="Indoor/Outdoor Wine Glass, Acrylic, 8 oz. Full Color Imprint">
    While it created no problem for the desktop page version,
    itís possible that Duda mobile was not able to parse the ď/ď between the two words or connecting the two words.

    Bacchus




    Oct 20 2017 21:25:52

    #7

    Alan

    Join date : 2008-09-18      Posts : 2944

    I'd guess it's an imperfect piece of html that browser doesn't tolerate. Try the ww3 validator at http://validator.w3.org/.

    Edit - I hadn't seen your previous post. Wouldn't have thought the '/' should throw a browser - but it's that or some other difference.

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