WordPress plugin intelligence profile

Coupon Shortcodes for WooCommerce

Show coupon discount info using shortcodes. Allows to render coupon information and content conditionally, based on the validity of coupons.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version5.0.0
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.5 · PHP 7.4
Directory statusactive
Last directory update15 Oct 202617d ago
Active installations1K+Adoption metric — not a quality score
WordPress.org rating4.9 / 5 from 17 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Coupon Shortcodes for WooCommerce version 5.0.0 as active, updated 17d ago and tested up to WordPress 7.1.

Overview

About this plugin

Show coupon discount info using shortcodes. Allows to render coupon information and content conditionally, based on the validity of coupons.

Customers can be motivated to proceed with their purchase, offering them to use specific coupons when the contents in the cart qualify for it, or by offering them to purchase additional items so they can use a coupon.

This extension for WooCommerce is a useful addition that is easy to use.

Works great with these premium extensions: Volume Discount Coupons, Group Coupons and Coupons Countdown.

Conditional Shortcodes

It provides the following conditional shortcodes that allow to enclose content which is shown if certain coupons are applied, valid or active:

[coupon_is_active] [coupon_is_not_active] [coupon_is_applied] [coupon_is_not_applied] [coupon_is_valid] [coupon_is_not_valid]

These conditional shortcodes allow to render content if any coupons are applied, valid or active:

[coupon_has_valid] [coupon_has_not_valid] [coupon_has_active] [coupon_has_not_active] [coupon_has_applied] [coupon_has_not_applied]

Coupon Info Shortcodes

It also provides shortcodes that allow to render the coupon code, its description and an automatic description of the discount:

[coupon_code] (this one makes sense mostly when used inside one of the conditional shortcodes). [coupon_description] [coupon_discount] [coupon_show]

A coupon iterator shortcode makes it easy to work with a set of coupons, the enclosed content is rendered for each coupon in sequence. The informational shortcodes can be used inside the content of this shortcode to display details about each coupon code.

[coupon_iterate]

For example: [coupon_iterate code="test,welcome,20off"][coupon_code] – [coupon_discount][/coupon_iterate]

A coupon enumerator shortcode allows to list all or a set of coupons, to show their code, description or discount information, or combinations of those using the [coupon_show] shortcode:

[coupon_enumerate]

Documentation

Please refer to the plugin’s documentation pages for detailed descriptions.

Examples

Show a text when a coupon can be used (active) – this is useful to show promotional info while coupons can be used, as active means that the coupon has not reached its expiration date nor exceeded its usage limits:

[coupon_is_active code="eastereggs"] Happy Easter! Use the coupon code [coupon_code] to hop away with a great discount: [coupon_discount] [/coupon_is_active]

This is an example of a text shown when a promotion is over:

[coupon_is_not_active code="specialdiscount"] Our special discount sale has ended. Come back often to see more! [/coupon_is_not_active]

Showing a coupon when the cart contents qualify for a coupon to be applied:

[coupon_is_valid code="superdiscount"] You qualify for a discount! Use the coupon code [coupon_code] to take advantage of this great discount: [coupon_discount] [/coupon_is_valid]

Showing a coupon that is not valid for the current cart and motivating to add items:

[coupon_is_not_valid code="25off"] If you purchase 5 Widgets, you can use the coupon [coupon_code] to get 25% off your purchase! [/coupon_is_not_valid]

Iterate over several coupons and show their discount info:

[coupon_iterate code="test,welcome,20off"] Use the Coupon Code: [coupon_code] for [coupon_discount] [/coupon_iterate]

Iterate over all coupons and show their discount info:

[coupon_iterate code="*"] Use the Coupon Code: [coupon_code] for [coupon_discount] [/coupon_iterate]

Show information about three random coupons, including the coupon code, its description and discount info together on each entry:

[coupon_enumerate code="*" orderby="rand" number="3"] [coupon_show show="code,description,discount"] [/coupon_enumerate]

Show a single random coupon code:

[coupon_enumerate code="*" orderby="rand" number="1"] [coupon_code] [/coupon_enumerate]

Documentation and Support

Full usage instructions and help is provided on these pages:

  • The Documentation pages provide detailed information.
  • Questions, feedback and suggestions can be posted on the Coupon Shortcodes page.
  • You can contact WooCommerce Support with your questions related to this extension.

Connect

Join r/itthinx, follow us on Mastodon or on X for related news and information. com where you can find more free and premium extensions.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • coupon
  • discount
  • marketing
  • shortcode
  • woocommerce
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.5 · PHP 7.4
Update activity15 Oct 202617d ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version4.4.05.0.0
WordPress compatibility7.17.1.3
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.