Plug-ins for Pulse

Pulse Plugin icon

PayPal Mini Cart

version 1.1

PayPal Mini Cart is a plug-in for Pulse that allows you to quickly and easily add a PayPal powered shopping cart to your site.

Example #1 - Add to cart button

How to live forever or die trying

eBook, 120 pages

In this first of it's kind publication author Robert McDingle presents compelling evidence that we can all live forever! McDingle goes to amazing lengths to support his claims and outlines his routine to live by. Join him in his journey to live forever.

Only $9.99 $7.99 - Buy Now and save $2.00!


  • Published: 05/20/2016
  • Number of pages: 120
  • Format: eBook (Supports Kindle, iBooks, Nook and most other readers and devices.)

Example #2 - Options

How to live forever or die trying

eBook, Paperback or Hardback, 120 pages

In this first of it's kind publication author Robert McDingle presents compelling evidence that we can all live forever! McDingle goes to amazing lengths to support his claims and outlines his routine to live by. Join him in his journey to live forever.

Only $9.99 $7.99 - Buy Now and save $2.00!


  • Published: 05/20/2016
  • Number of pages: 120
  • Format: eBook (Supports Kindle, iBooks, Nook and most other readers and devices.)

Example #3 - Using a bitmap button

Hokey Cokey 2000 All Terrain Mountain Bike

Only $499.99 - Limited edition!

Example - View cart button



Installing the plug-ins

Download the plug-ins and FTP the ppadd.php and ppview.php files and paypal directory into the inc/tags directory in your Pulse install.

Using the plug-ins

To add an add to cart button to your Pulse blog, block or page use the following Pulse tag where you want the button to appear;

{{ppadd:name=How to live forever or die trying ebook,price=9.99}}

The only required values in the tag are the product or service name (name) and the price or product options.

You can also optionally add in an item ID or code number, a discount value and a set of options for the product. The discount figure is a fixed amount to be applied to the price and is represented as a real price rather than a percentage.

{{ppadd:name=How to live forever or die trying ebook,price=9.99,discount=2.00,id=ISBN-133224432}}

If you want to specify a set of options for the product or service then you can add them to the shortcode using the options attribute. The values for the options are stored as name/value pairs with the option name and the price separated by an equals sign. The entry called label specifies the text label for the option drop down list.

As an example here's the shortcode for the options list shown above for the book;

{{ppadd:name=How to live forever or die trying,discount=2.00,id=ISBN-133224432,options=label-Format|eBook-9.99|Paperback-12.99|Hardback-15.99}}

Notice how we didn't need to set the price in the last example as the price is defined in the options. If you set a price as well as option pricing then the price of the currently selected option will be applied in the cart.

You can also define a shipping cost for a product by adding the shipping attribute;

{{ppadd:name=How to live forever or die trying,price=9.99,discount=2.00,shipping=2.50}}

To add a view cart button use the following Pulse tag where you want the button to appear;

{{ppview}}

The view cart button shortcode doesn't have any parameters.

Setting global values with the config file

A config file for the plug-ins allow you to set the PayPal account and currency for your store. Additionaly you can set the cart to use the PayPal sandbox for testing your site, choose between bitmapped or HTML button types and disable the cart so that users are taken directly to PayPal's own cart system. You can also change the text displayed on the buttons themselves.

The config file stores global values for your shopping cart and will change all of the PayPal Mini Cart buttons on your Pulse site. To change any of the settings open the paypal > config.php file and edit the file in a plain text editor.

The available settings are;

// The recipients PayPal registered email address $business = "name@example.com";

// The currency. USD, GBP, etc See all of the codes $currency = "GBP";

//set to true to use the PayPal sandbox testing area $sandbox = true;

$phpMiniCart = true; //set to true to use the PHP mini cart script or false to send the user directly to PayPal

$graphicButton = false; // Choose between graphic (true) or HTML (false) buttons.
// Button graphics should be placed in the paypal directory (pulse/inc/tags/paypal) on your server and be named; ppadd.png - Add to cart button ppview.png - View cart button

$addToCart = "Add to cart"; // the text used on the 'Add to cart' buttons

$viewCart = "View cart"; // the text used on the 'View cart' buttons

$button = 'Check Out'; // the text displayed on the checkout button in the cart

$subtotal = "Subtotal:"; // the subtotal text displayed in the cart

$discountTxt = "Discount:"; // the discount text displayed in the cart

$processing = "Processing..."; // the processing message displayed in the cart

$empty = "Your shopping cart is empty"; // the message that tells the user their cart is empty

PayPal Mini Cart details

Version 1.1
Requires Pulse 4.0 or above
Last Updated 25th May 2016
Support contact us

Single Site License - $9:

Five Site License - $29:

All payments are made securely using our Paddle online store.

Need something else? We can help.

 

If you are looking for a custom plug-in, template or gallery for Pulse then get in touch as I'm sure we can help.