WooCommerce Simple Cart Discount Documentation

Installation

To install the WooCommerce Simple Cart Discount plugin:

  1. Download the plugin ZIP file
  2. Go to WordPress admin > Plugins > Add New
  3. Click "Upload Plugin" and choose the downloaded ZIP file
  4. Click "Install Now" and then "Activate"

After activation, you'll find the settings under WooCommerce > Settings > Simple Cart Discount or Marketing > Simple Cart Discount.

Basic Settings

Enable/Disable

Toggle the discount functionality on or off using the enable checkbox.

Minimum Amount

Set the minimum cart total required to trigger the discount. For example, if set to $100, customers need to add items worth $100 or more to their cart to receive the discount.

Discount Types

Choose from three discount types:

Location Restrictions

Limit the discount to specific countries:

Customer Restrictions

Option to limit discounts to new customers only (those without completed orders). If unchecked, the discount will be applied to all customers including returning customers.

Excluded Products

Select specific products to exclude from the discount calculation. These products will still count towards the cart total but won't receive the discount.

Progress Bar

The progress bar will be displayed on the cart page by default, if you want to display the progress bar on other pages, you can use the shortcode to display the progress bar on other pages.

Position Options

Customizable Messages

Customize both progress and success messages using these variables:

Customization

Colors

Customize the colors of the progress bar:

Shortcodes

Use this shortcode to display the progress bar anywhere:

[simple_cart_discount_progress_bar class="my-custom-class" style="margin: 20px 0;"]

Available Parameters

Developer Guide

Display the progress bar programmatically using PHP:

if (class_exists('Simple_Cart_Discount')) {
    $wc_cart_discount = new Simple_Cart_Discount();
    echo $wc_cart_discount->simple_cart_discount_progress_bar('custom', array(
        'class' => 'my-custom-class',
        'style' => 'margin: 20px 0;',
        'text_color' => '#000000',
        'bar_color' => '#ff0000',
        'bg_color' => '#ffffff',
        'border_color' => '#dddddd'
    ));
}

Troubleshooting

Common Issues