New plugin: PayPal buttons
-
What it does:
Prints PayPal ‘add to cart’ and ‘view cart’ buttons, so you can use WordPress to sell stuff.
Why and how:
I was working on a full-on shopping cart plugin for WordPress, when I got bored and decided it’d be much faster to just tap into PayPal’s free Shopping Cart. You’ll need a free PayPal account (sign up at PayPal.com). You can customise the look and feel of the shopping cart a little from within your PayPal account using custom ‘tempates’.
Source:
http://www.redbrick.dcu.ie/~slack/paypal.phps
(save the above link as ‘paypal.php’ in your wordpress ‘plugins’ directory, then activate it)
Installation:
Usepaypal_add_to_cart('business')inside the posts loop, andpaypal_show_cart('business')anywhere you like in your template to insert PayPal Shopping Cart buttons. Besides ‘business’ you can also pass ‘buttonImageUrl’ for custom button images, and for the Add to Cart button you can also pass ‘currency’ (e.g. ‘EUR’ for Euro, default USD), ‘tax’ (e.g. ’21’ for 21%, default 0). Plugin uses values from custom fields ‘pp_item’, ‘pp_amount’, and optional custom field ‘pp_tax’ for per-item custom tax.
License:
This software is licensed under the CC-GNU GPL.
The topic ‘New plugin: PayPal buttons’ is closed to new replies.