Product Add To Cart Button

In the previous step, adding the product ordering options, you should have added the tags for the product add to cart form. Add the code below within that form.

    [-- IF ADDIMAGE? --]
    <input type="image" [--ADDIMAGE--]>
    [-- ELSE --]
    <input class="add" type="submit" value="[-- ADDTEXT --]">
    [-- END_IF --]

Here is the full form code:

    <form action="[-- SHOPPING_CART_URL Base --]/order.cgi" method="post">
    <input type="hidden" name="storeid" value="[-- STORE.ID --]">
    <input type="hidden" name="dbname" value="products">
    <input type="hidden" name="function" value="add">
    <input type="hidden" name="itemnum" value="[-- PRODUCT.RecordNumber --]">

    [-- IF PRODUCT.DisplayOrderingOptions --]
      [-- IF PRODUCT.OptionText --][-- PRODUCT.OptionText --]
    [-- END_IF --]
      [-- Order_Option_Menu Line --]<br>
    [-- END_IF --]

    Qty: <input type="text" size="3" value="1" name="[-- PRODUCT.RecordNumber --]:qnty">

    [-- IF ADDIMAGE? --]
    <input type="image" [--ADDIMAGE--]>
    [-- ELSE --]
    <input class="add" type="submit" value="[-- ADDTEXT --]">
    [-- END_IF --]
    </form>
Start: Search Template