Help Search our knowledge base:

Index - FAQ - Misc

 Details
Frequently Asked
Question (FAQ)

Document Number: 1161

Optimize for Printing
E-Mail This Link

 Feedback
This document ...
helps resolve my question or problem.
does not apply to my question or problem.
is inaccurate for my question or problem.
Creating an add to cart button that goes directly to checkout.

Below is an example of how to combine a normal add to cart button with a checkout button. This way your shopper will be taken directly to checkout instead of seeing a basket summary.

Normal Button
<form method="post" style="margin-bottom: 0" action="https://860218.2uaerguo.asia/cgi-bin/cart.cgi">
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="3" align="center">
      <input type="hidden" name="AddItem" value="demo|TestONE|12345|1|||prompt|1">
      <input type="image" name="AddGraphic" border="0" alt="Add To Cart" src="https://860218.2uaerguo.asia/images2/themes/two_tone/add.gif">
    </td>
  </tr>
</table>
</form>


Add this line
<input type="hidden" name="CheckOut" value="Online">

Combined
<form method="post" style="margin-bottom: 0" action="https://860218.2uaerguo.asia/cgi-bin/cart.cgi">
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="3" align="center">
      <input type="hidden" name="AddItem" value="demo|TestONE|12345|1|||prompt|1">
      <input type="hidden" name="CheckOut" value="Online">
      <input type="image" name="AddGraphic" border="0" alt="Add To Cart" src="https://860218.2uaerguo.asia/images2/themes/two_tone/add.gif">
    </td>
  </tr>
</table>
</form>


See Also: Can I send you the shipping and billing information so that you do not need to request it?