Community Forums 

Main Content

Re:Add to basket

    Sep 16 2008 16:12:27

    #1

    Tracey

    Join date : 2008-09-18      Posts : 16

    The code I've used to allow customers to add items to their basket without going to the cart is below. However when pressed, although it does add the item to the cart and stays on my site, the 'add to basket' button disappears. Obviously I don't want this to happen. Any ideas?
    Thanks.
    Code:
    <input type="hidden" name="product1" value="1011M Knee Wrap Medium">
    Medium:&nbsp; <input type="hidden" name="price1" value="41.70">
    <input type="text" name="qty1" size="3">
    &nbsp;
    <input type="hidden" name="product2" value="1011L Knee Wrap Large">
    Large:&nbsp; <input type="hidden" name="price2" value="41.70">
    <input type="text" name="qty2" size="3">
    <input name="nocart" type="submit" value="Add to Basket">
    &nbsp;&nbsp;
    <input name="submit2" type="submit" value="Buy Now">