Convert Paypal Single Order Forms to a Cart

Paypal shopping cart setup and support

Sticky Note Changing Forms
Older Button Style: Information on this page is to convert older type Paypal single order forms to shopping cart forms. This older code still works and is still supported by Paypal, however, if you wish to use the latest code, generate your buttons in your Paypal account.

See Instead…

About Single Order Forms
Paypal has the option to create single item order forms instead of using an add to cart button. In some cases this may be the desired button type depending on the product offered for purchase. You can convert single item order forms into a cart as outlined below.

Update: Instead of using the older code below, you can login to your Paypal account, go to "Tools" and generate Paypal shopping cart buttons instead.


Converting Paypal forms to a Paypal Cart
To convert the Paypal forms to a shopping cart, use only parts of the current code used in the template. Keep the first "action" line, and also the last viewable button line that is the default in your template forms. Optionally copy and paste the following code, editing the 4 highlighted areas:

The following is older non-generated code for a Paypal shopping cart button.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="margin: 0px;">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="your@email.com">
<input type="hidden" name="item_name" value="Product 1">
<input type="hidden" name="amount" value="39.99">
<input type="hidden" name="custom" value="">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="add" value="1">
<input type="hidden" name="return" value="http://your-domain.com/thanks-payment.htm">
<input type="submit" value="Add to Cart" name="submitbutton" onmouseover="this.className='buttonon-order'" onmouseout="this.className='button-order'" class="button-order"><br>
</form>


View cart link
If you have converted the Paypal forms to a shopping cart, you can use the following link (edit with your e-mail) in the html pages or "menu.js" for a view cart link.

https://www.paypal.com/cart/business=your@email.com&display=1

Notes: The "robots.txt" is only needed if you are selling downloadable items to keep search engines out of the download folder.




Related Topics:
Setting up the Paypal order forms
Automatic download setup


Links:
PayPal Account Setup