Community Forums 

Main Content

Same item adds new line in cart

    Apr 02 2011 04:29:08

    #1

    pcguy

    Join date : 2008-09-18      Posts : 130

    If I click on the same item on my page it adds a new line in the cart instead of incrementing the qty.

    This is the code I am using

    <form action="http://ww6.aitsafe.com/cf/add.cfm"; method="post">
    <input name="userid" type="hidden" value="83303976">
    <input type="hidden" name="nocart">
    <input type="hidden" name="scode" value="ad01">
    <input type="hidden" name="product" value="Lost & Found Ad">
    <input type="hidden" name="price" value="5.00">
    <input type="image" src="images/buy.png" alt="Add to Cart" onClick="alert('Item has been added to cart!\n\nIf you require more ads adjust the qty in cart\r\nor click View cart to checkout.');">
    </FORM>

    I have changed it to this and it still fails


    <form action="http://ww6.aitsafe.com/cf/add.cfm"; method="post">
    <input name="userid" type="hidden" value="83303976">
    <input type="hidden" name="nocart">
    <input type="hidden" name="scode" value="ad01">
    <input type="hidden" name="productpr" value="Lost & Found Ad">
    <input type="Hidden" name="discountpr" value="0,5.00">
    <input type="image" src="images/buy.png" alt="Add to Cart" onClick="alert('Item has been added to cart!\n\nIf you require more ads adjust the qty in cart\r\nor click View cart to checkout.');">
    </FORM>

    could someone advise me where I am going wrong if possible please



    Apr 02 2011 04:39:07

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    Try changing productpr to product. And with nocart you need a return field.

    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.