This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Coupon Counter for EDD

Description

Coupon Counter for Easy Digital Downloads (EDD) is a very simple but useful plugin that allows you to dynamically display the number of discount codes used/left.

Display messages like:

  • Only 128 Coupons left!
  • 34/200 Discount Codes used!

Shortcode

Using Coupon Counter for EDD is easy. Use the following shortcode to display the number of coupon codes left/used:

[cc-edd id="discount-id" format="countdown/count"]

Examples

Only [cc-edd id="293" format="countdown"] Coupons left!

Will result in: Only xxx Coupons left!

[cc-edd id="293" format="count"] Discount Codes used!

Will result in: xx/xxx Discount Codes used!

Advanced

There is a filter available for the “count” format that allows you to change the separator icon and replace it with your own.

In the example below we replace the “/” divider with the word “of”.

function prefix_custom_cc_edd_divider() {
    return ' of ';
}
add_filter( 'cc_edd_divider', 'prefix_custom_cc_edd_divider' );

Following the example above, this would result in:
xx of xxx Discount Codes used!

Screenshots

  • Coupon Counter for EDD in action

Installation

  1. Download the edd-coupon-counter.zip file to your computer.
  2. Unzip the file.
  3. Upload the edd-coupon-counter folder to your /wp-content/plugins/ directory.
  4. Activate the plugin through the Plugins menu in WordPress.

FAQ

Where do I get the Discount ID from?

You will find a list of all your discounts under Downloads > Discount Codes. When hovering over the “Edit” link for one of your discounts, a URL will appear in the bottom left corner of your browser window.

The URL will look something like this: https://yourwebsite.com/wp-admin/edit.php?post_type=download&page=edd-discounts&edd-action=edit_discount&discount=293.

You can find the Discount ID at the end of the URL.
The ID in that particular example would be 293.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Coupon Counter for EDD” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0 | May 2, 2020

  • Initial Release