Community Forums 

Main Content

Can't find code glitch

    Dec 01 2008 21:55:28

    #1

    Flaggfish

    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="http://ww12.aitsafe.com/cf/addmulti.cfm"; method="post">
    <div align="center">
    <p>
    <input type="hidden" name="return" value="www.braggfarm.com/mapleproducts.html"; />

    <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>
    </select>

    <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>

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

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

    <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 />
    </p>

    </form>

    <form method="post" action="http://ww12.aitsafe.com/cf/review.cfm">;

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



    Dec 01 2008 22:06:23

    #2

    just visiting

    Join date : 2008-09-18      Posts : 2950

    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.

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




    Dec 01 2008 22:34:52

    #3

    Flaggfish

    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

    #4

    just visiting

    Join date : 2008-09-18      Posts : 2950

    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.

    FAQs

    free cart faqs
    setup faqs
    forum faqs

    button maker

    Support

    Creating Buy Now buttons

    Using a hyperlink
    Using an HTML form
    includes
    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
    Authorizenet
    2Checkout
    Barclays ePDQ
    Internetsecure
    Netbanx
    Worldpay
    Accepting card payments
    Custom gateway

    Vouchers and coupons

    Gift vouchers/certificates
    Discount coupons

    Configuring your cart

    Language and currency
    Shipping
    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
    Netobjects
    Quickbooks
    PCI Compliance

    mOrders

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

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