Title: Coupon Shortcodes for WooCommerce
Author: itthinx
Published: <strong>ستمبر 14, 2013</strong>
Last modified: اکتوبر 15, 2026

---

Search plugins

![](https://ps.w.org/woocommerce-coupon-shortcodes/assets/banner-772x250.png?rev
=3238009)

![](https://ps.w.org/woocommerce-coupon-shortcodes/assets/icon-256x256.png?rev=3238009)

# Coupon Shortcodes for WooCommerce

 By [itthinx](https://profiles.wordpress.org/itthinx/)

[Download](https://downloads.wordpress.org/plugin/woocommerce-coupon-shortcodes.5.0.0.zip)

 * [Details](https://bcc.wordpress.org/plugins/woocommerce-coupon-shortcodes/#description)
 * [Reviews](https://bcc.wordpress.org/plugins/woocommerce-coupon-shortcodes/#reviews)
 *  [Installation](https://bcc.wordpress.org/plugins/woocommerce-coupon-shortcodes/#installation)
 * [Development](https://bcc.wordpress.org/plugins/woocommerce-coupon-shortcodes/#developers)

 [Support](https://wordpress.org/support/plugin/woocommerce-coupon-shortcodes/)

## Description

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](https://woocommerce.com/) is a useful addition 
that is easy to use.

Works great with these premium extensions: [Volume Discount Coupons](https://woocommerce.com/products/volume-discount-coupons/),
[Group Coupons](https://woocommerce.com/products/group-coupons/) and [Coupons Countdown](https://www.itthinx.com/shop/woocommerce-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](https://docs.itthinx.com/document/woocommerce-coupon-shortcodes/)
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](https://docs.itthinx.com/document/woocommerce-coupon-shortcodes/)
   pages provide detailed information.
 * Questions, feedback and suggestions can be posted on the [Coupon Shortcodes](https://www.itthinx.com/plugins/woocommerce-coupon-shortcodes/)
   page.
 * You can contact [WooCommerce Support](https://woocommerce.com/contact-us/) with
   your questions related to this extension.

#### Connect

Join [r/itthinx](https://www.reddit.com/r/itthinx/), follow us on [Mastodon](https://mastodon.social/@itthinx)
or on [X](https://x.com/itthinx) for related news and information. Visit [itthinx.com](https://www.itthinx.com)
where you can find more free and premium extensions.

## Installation

 1. Upload or extract the `woocommerce-coupon-shortcodes` folder to your site’s `/wp-
    content/plugins/` directory. You can also use the _Add new_ option found in the
    _Plugins_ menu in WordPress.
 2. Enable the plugin from the _Plugins_ menu in WordPress.

## FAQ

### Where is the documentation?

[Documentation](https://docs.itthinx.com/document/woocommerce-coupon-shortcodes/)

### I have a question, where do I ask?

You can leave a comment at the [Coupon Shortcodes for WooCommerce plugin page](https://www.itthinx.com/plugins/woocommerce-coupon-shortcodes/).

You can also [Contact WooCommerce Support](https://woocommerce.com/contact-us/) 
with your questions related to this extension.

### How can I install this extension?

 * For self-hosted sites install [WordPress.org](https://wordpress.org/plugins/woocommerce-coupon-shortcodes/)
   directly from your dashboard.
 * For WooCommerce customers use [WooCommerce.com](https://woocommerce.com/products/coupon-shortcodes/).
 * For sites hosted on [WordPress.com](https://wordpress.com/plugins/woocommerce-coupon-shortcodes)
   with a plan that supports adding plugins.

## Reviews

![](https://secure.gravatar.com/avatar/51e1b6445e51f250aa4bf41fbcf916de7e00cb728f8a2bde5d2983873e66dd1c?
s=60&d=retro&r=g)

### 󠀁[Useful Plugin](https://wordpress.org/support/topic/useful-plugin-1110/)󠁿

 [daliyanaturals](https://profiles.wordpress.org/daliyanaturals/) اکتوبر 4, 2025

Good

![](https://secure.gravatar.com/avatar/383184e23ac1be5247accafd2064c2dec83dd038fafaa317f6ad9193798e9aeb?
s=60&d=retro&r=g)

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-36806/)󠁿

 [David Malsam](https://profiles.wordpress.org/davidmalsam2/) مئی 9, 2023 1 reply

Great Plug In 5 stars

![](https://secure.gravatar.com/avatar/5b616b20376498757966bd862d1f972fa3a76694123e60d16d6e1ce8da42ea73?
s=60&d=retro&r=g)

### 󠀁[Simply Brilliant!](https://wordpress.org/support/topic/simply-brilliant-93/)󠁿

 [dcaynes](https://profiles.wordpress.org/dcaynes/) جُون 4, 2022 1 reply

WooCommerce Coupon Shortcodes is not only incredibly handy but a masterful use of
WordPress shortcodes!

![](https://secure.gravatar.com/avatar/b71e149625a06b85a2ebb4c670a27322e5b92414922ddc37d4ed18fe4ca6c653?
s=60&d=retro&r=g)

### 󠀁[Brilliant Plugin](https://wordpress.org/support/topic/brilliant-plugin-426/)󠁿

 [abskolaps](https://profiles.wordpress.org/abskolaps/) اپریل 4, 2021

Useful and easy to use. I've not had any issues with this plugin, it was as it says
it would.

![](https://secure.gravatar.com/avatar/c6157bac4ca9a4bcf86ca0f41eae008224739ae02ebe8ce5a51f694675801338?
s=60&d=retro&r=g)

### 󠀁[Great Complement To My Checkout](https://wordpress.org/support/topic/great-complement-to-my-checkout/)󠁿

 [ayinla](https://profiles.wordpress.org/ayinla/) نومبر 14, 2020

Perfect complement to product launch campaigns

![](https://secure.gravatar.com/avatar/26634923eb2f20281df2338c842c25edd759fce1e7186c2585bbf35926e100a4?
s=60&d=retro&r=g)

### 󠀁[So far, so good](https://wordpress.org/support/topic/so-far-so-good-859/)󠁿

 [wp_edu](https://profiles.wordpress.org/alemao2k6/) ستمبر 16, 2020

Works great, coupon links are awesome and works perfectly adding items to the cart,
and applying the coupon automatically. The redirection feature is also great to 
take the customer to the promotion category, while adding the coupon for the promo
automatically.

 [ Read all 17 reviews ](https://wordpress.org/support/plugin/woocommerce-coupon-shortcodes/reviews/)

## Contributors & Developers

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

Contributors

 *   [ itthinx ](https://profiles.wordpress.org/itthinx/)
 *   [ Kento ](https://profiles.wordpress.org/proaktion/)

[Translate “Coupon Shortcodes for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/woocommerce-coupon-shortcodes)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/woocommerce-coupon-shortcodes/),
check out the [SVN repository](https://plugins.svn.wordpress.org/woocommerce-coupon-shortcodes/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/woocommerce-coupon-shortcodes/)
by [RSS](https://plugins.trac.wordpress.org/log/woocommerce-coupon-shortcodes/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

[Complete Changelog](https://github.com/itthinx/woocommerce-coupon-shortcodes/blob/master/changelog.txt)

## Meta

 *  Version **5.0.0**
 *  Last updated **1 day ago**
 *  Active installations **1,000+**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **7.1.3**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/woocommerce-coupon-shortcodes/)
 * Tags
 * [coupon](https://bcc.wordpress.org/plugins/tags/coupon/)[discount](https://bcc.wordpress.org/plugins/tags/discount/)
   [marketing](https://bcc.wordpress.org/plugins/tags/marketing/)[shortcode](https://bcc.wordpress.org/plugins/tags/shortcode/)
   [woocommerce](https://bcc.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://bcc.wordpress.org/plugins/woocommerce-coupon-shortcodes/advanced/)

## Ratings

 4.9 out of 5 stars.

 *  [  15 5-star reviews     ](https://wordpress.org/support/plugin/woocommerce-coupon-shortcodes/reviews/?filter=5)
 *  [  2 4-star reviews     ](https://wordpress.org/support/plugin/woocommerce-coupon-shortcodes/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/woocommerce-coupon-shortcodes/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/woocommerce-coupon-shortcodes/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/woocommerce-coupon-shortcodes/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/woocommerce-coupon-shortcodes/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/woocommerce-coupon-shortcodes/reviews/)

## Contributors

 *   [ itthinx ](https://profiles.wordpress.org/itthinx/)
 *   [ Kento ](https://profiles.wordpress.org/proaktion/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/woocommerce-coupon-shortcodes/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.itthinx.com/shop/)