Integration Guide

Table Of Contents
The PayPal Shopping Cart – Add to Cart and View Cart Buttons
Sample HTML Code for Add to Cart Buttons
4
228 September 2008 Website Payments Standard Integration Guide
3. Copy the text that you selected to the clipboard, by:
pressing Ctrl+C.
– or –
right-clicking your mouse, and selecting Copy.
4. Open the webpage where you want the button to be seen.
5. Paste the text that you copied from the clipboard onto your webpage where you want the
button to appear, by:
pressing Ctrl+V.
– or –
right-clicking your mouse, and selecting Paste.
Creating More Add to Cart Buttons With JavaScript Disabled. After you copy and paste
the PayPal Shopping Cart code, you can create another Add to Cart button for a different item.
Scroll to the bottom of the Add a shopping cart to your site page and click the Create
Another Button button. Then follow the instructions for “Page 1 – Specifying the Basic
Features of the Add to Cart Button” on page 220, beginning with Step 5. The pages of the
button creation tool retain the options that you specified previously.
Avoiding Problems With Pasted HTML Code
After you paste the HTML code onto your webpage, ensure that it matches exactly the HTML
code you copied from PayPal. Pasted code may not match the generated code for the following
reasons:
z You did not copy all of the generated code.
z Your HTML editing tool may have special areas for pasting HTML code and other areas
for pasting display text. Be sure you paste the generated code into a field that accepts
HTML code.
z Your HTML editing tool might change some characters in the pasted code.
Sample HTML Code for Add to Cart Buttons
The sample HTML code in this section demonstrates various features of Add to Cart buttons:
z “Sample HTML Code for a Basic Add to Cart Button” on page 229
z “Sample HTML Code for Add to Cart Buttons With Product Options” on page 229
z “Sample HTML Code for Add to Cart Buttons that Open the Shopping Cart in the
Merchant Window” on page 233
z “Sample HTML Code for Add to Cart Buttons that Continue Shopping on the Current
Merchant Webpage” on page 236