WP Shopping Cart

A simple PayPal shopping cart for WordPress.

Download WP Shopping Cart

GitHub Project       Getting Started

Getting Started

WordPress Shopping Cart makes it easy for visitors to:

This is not a plugin. A working knowledge of PHP and WordPress functions is required.


How to Use WP Shopping Cart

1. Add the shopping cart to your theme.

Copy wp-shopping-cart.php to your theme directory. Call the shopping cart in your functions.php file:

require_once('wp-shopping-cart.php');

Dont' have a functions.php file? Create one, drop it in your theme directory, and add an opening and add opening and closing PHP tags:

<?php require_once('wp-shopping-cart.php'); ?>

2. Configure your settings.

In the wp-shopping-cart.php file, replace these variables with your information:

3. Create product pages.

Create pages for your products, and use the [add_to_cart] shortcode to create links.

Shortcode variables:

Example:

[add_to_cart product="T-Shirt" price="20" options="Size=Small|Med|Large"]

4. Create a shopping cart page.

Create a shopping cart page, and use the [checkout_cart] shortcode to embed a cart.

5. Add a link to the cart.

Add a link to the cart anywhere on your site using the [checkout_cart_link] shortcode or <?php echo checkout_cart_link(); ?>.


What It Looks Like

A screenshot of the shopping cart


Useful Add-Ons

WordPress Shopping Cart was designed to work with the Kraken boilerplate, Kraken for WordPress, and Tables.

It should work great with other themes, too. You may just need to adjust the styling a little bit.