Plug-ins for Pulse

Hi! At Pulse Style we create all sorts of fun stuff for the very talented CMS, Pulse.

Pulse Plugin icon

PayPal Mini Cart

version 1.4

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 you can either type a Pulse tag where you want the button to appear or use the included Redactor plug-in to insert the tag by simply filling out a form. The basic tag format is quite simple and looks like this;

{{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

Using the Redactor plug-in

Rather than having to remember these short codes you can simply install the included Redactor plug-in for the cart which will automatically add a new PayPal button to the toolbar of the editor. When clicked a form will appear allowing you to set the product options simply by filling in the correct information.

PayPal Mini Cart details

Version 1.4
Requires Pulse 4.0 or above
Last Updated 27th January 2017
Support contact us

Single Site License - $9:

Five Site License - $29:

All payments are made securely using our Paddle online store.

What is Pulse?

Pulse is a simple, yet powerful content management system and is ideally suited to small or medium sized web sites.

We've developed a number of plug-ins, themes and galleries for Pulse to allow you and your clients to add rich content to your sites quickly and easily.

About Pulse Style

Pulse Style is run by Tim Plumb who has been using Pulse for both personal and commercial projects since 2012. Over that time he's created a number of plug-ins, themes, custom galleries and other scripts for the CMS.

Tim can also be found over at Plumb Design, or making cool stuff for Freeway Pro over at Freeway Style and Freeway Actions. Pop by and say hi!

Sign up for news and offers

Stay in touch by signing up for our (infrequent) email newsletter with details on what's new from Pulse Style.