Community Forums 

Main Content

Can't find code glitch

    Dec 01 2008 21:55:28



    Join date : 2008-09-23      Posts : 77

    I get a "cart is empty" error message when I test this form. I have others that are working just like to as far as I can tell, but there's SOMETHING I'm not finding! It's 2 pulldown menus and a text box that all refer to one item.
    Any help appreciated!
    Maple Products
    <form action=""; method="post">
    <div align="center">
    <input type="hidden" name="return" value=""; />

    <input type="hidden" name="userid" value="E975502" />

    <input type="hidden" name="qty1" value="1">

    <select name="productpr" size="1">

    <option value="Select Product"> Select Candy, Cream or Sugar </option>

    <option value="8 oz Jar Maple Cream 030 to NY/New Eng:19.50">8 oz Jar Maple Cream 030 - 19.50 to NY/New Eng</option>

    <p><select name="product[]">

    <option value="Who do we send this item to?">Who do we send this item to?</option>

    <option value="Send it to me">Send it to me</option>

    <option value="Send it to a new recipient">Send it to a new recipient</option>

    <option value="Send it to a recipient I've already added in this order">Send it to a recipient I've already added in this order</option>
    </select><br />

    <p><strong>Add Name and Mailing Address of Gift Recipient here:<br />

    If you are sending several items to the same person, just add<br />

    the shipping address to the first item, and the name alone to the rest.</strong><br />

    (If shipment is for <strong>you</strong>, enter your shipping address during payment process.)<br>

    <textarea name="product[]" cols="40" rows="3"></textarea>

    &nbsp;&nbsp;&nbsp; </p>
    <p align="center">

    <input type="submit" value="Add to Cart" />

    <input type="reset" value="Reset" />
    <br />
    <br />

    <strong>Order 4 or more single items shipped to the same address and receive 10% off total.*<br />

    *Excludes cases and gallons. All prices include shipping and handling.</strong></p>

    <p align="center"><strong>If you are ordering gifts for several people, please place a separate order for each address</strong>.<br />


    <form method="post" action="">;

    <div align="center">
    <input type="hidden" name="userid" value="E975502" />
    <input type="submit" value="View Cart" />
    </form> </td>

    Dec 01 2008 22:06:23


    just visiting

    Join date : 2008-09-18      Posts : 2978

    If you change from addmulti.cfm to add.cfm and from qty1 to qty you may fare better.

    Or add suffix 1 to productpr and product.

    Some shipping help documents are available at

    Dec 01 2008 22:34:52



    Join date : 2008-09-23      Posts : 77

    Adding Suffix 1 to productpr and product[] worked, leaving addmulti.cfm

    The others that worked used add.cfm and had no suffix, just productpr and product[]
    Phew. It's been a long day. Is there any Mal's info that spells out these rules? I've been going on the sites that have examples, but there is no "why"....
    Thanks. SO much.

    Dec 02 2008 07:05:53


    just visiting

    Join date : 2008-09-18      Posts : 2978

    If you use add.cfm then the cart expects to receive one product, price, qty, etc., when the user Buys.

    If you have a form with multiple products then several may be sent to the cart when the customer buys and the cart needs to know which price, and qty, etc., is for which product.

    So numeric suffixes (1-50) are used with addmulti.cfm.

    There's Help if you click on Support above, top right but you sometimes need to know what you are looking for. Here's a list that may speed the process.


    free cart faqs
    setup faqs
    forum faqs

    button maker


    Creating Buy Now buttons

    Using a hyperlink
    Using an HTML form
    Product options
    Quantity Discounts
    Removing the quantity box
    Field names
    Adding multiple items to your cart

    View cart contents

    View cart with a hyperlink
    Using an HTML form

    Setup payment methods

    PayPal website standard
    PayPal express checkout
    Payflow Pro and Links
    PayPal Pro
    Barclays ePDQ
    Accepting card payments
    Custom gateway

    Vouchers and coupons

    Gift vouchers/certificates
    Discount coupons

    Configuring your cart

    Language and currency
    See also several Shipping articles
    Sales Tax
    Customer messages
    mTracker affiliate program

    Advanced settings

    Selling downloads
    Dynamic sites
    Remote call
    Link verification
    Posting directly to payments
    PCI Compliance


    Some Other Help
    GT's samples
    Tips site - getting old now
    g.e.'s scripts from way back

    Some shipping help documents are available at