How It Works |
- Log in to your Premier or Business PayPal account.
- Click on the Merchant Services tab.
- Click on the PayPal Shopping Cart link.
- Specify the name, price, and other details of the item you wish to sell.
- Add more optional information such as shipping, sales tax, and option fields (for size, color, etc.).
- Click Create Button Now and the Button Factory will generate customized HTML code.
- Paste the HTML code on your website to create your "Add to Cart" and "View Cart" buttons.
PayPal Shopping Cart HTML Code |
<form name="_xclick" target="paypal" action="" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value=""> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="item_name" value="HTML book"> <input type="hidden" name="amount" value="24.99"> <input type="image" src="http://www.paypal.com/en_US/i/btn/sc-but-01.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> <input type="hidden" name="add" value="1"> </form> |
Pasting the code above into your website would generate a button that looks like this:
If you dynamically generate portions of your site, you can populate your Add to Cart buttons dynamically and save time by updating the variables with information from your database. To use the button above for a different item, you would only need to edit three variables: item_name, item_number, and amount.
To add a View Cart button to your website, just use this code:
<form name="_xclick" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value=""> <input type="image" src="https://www.paypal.com/en_US/i/btn/view_cart.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> <input type="hidden" name="display" value="1"> </form> |
Pasting the code above into your website would generate a button that looks like this:
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
No comments:
Post a Comment