Title: Coupon Shortcodes for WooCommerce
Author: itthinx
Published: <strong>14 Tháng 9, 2013</strong>
Last modified: 15 Tháng 10, 2026

---

Tìm kiếm plugin

![](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

 Bởi [itthinx](https://profiles.wordpress.org/itthinx/)

[Tải về](https://downloads.wordpress.org/plugin/woocommerce-coupon-shortcodes.5.0.0.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/woocommerce-coupon-shortcodes/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/woocommerce-coupon-shortcodes/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/woocommerce-coupon-shortcodes/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/woocommerce-coupon-shortcodes/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/woocommerce-coupon-shortcodes/)

## Mô tả

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]
    ```

#### Tài liệu hướng dẫn

Please refer to the plugin’s [documentation pages](https://docs.itthinx.com/document/woocommerce-coupon-shortcodes/)
for detailed descriptions.

#### Ví dụ

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 [Tài liệu hướng dẫn](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.

## Cài đặt

 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.

## Hỏi đáp

### Where is the documentation?

[Tài liệu hướng dẫn](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.

## Đánh giá

![](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 Tháng 10, 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 Tháng 5, 2023 1 
trả lời

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 Tháng 6, 2022 1 trả lời

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 Tháng 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 Tháng 11, 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 Tháng 9, 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.

 [ Đọc tất cả 17 đánh giá ](https://wordpress.org/support/plugin/woocommerce-coupon-shortcodes/reviews/)

## Người đóng góp & Lập trình viên

“Coupon Shortcodes for WooCommerce” là mã nguồn mở. Những người sau đã đóng góp 
vào plugin này.

Những người đóng góp

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

[Dịch “Coupon Shortcodes for WooCommerce” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/woocommerce-coupon-shortcodes)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/woocommerce-coupon-shortcodes/),
check out [SVN repository](https://plugins.svn.wordpress.org/woocommerce-coupon-shortcodes/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/woocommerce-coupon-shortcodes/)
qua [RSS](https://plugins.trac.wordpress.org/log/woocommerce-coupon-shortcodes/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

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

## Meta

 *  Phiên bản **5.0.0**
 *  Cập nhật lần cuối **4 tuần trước**
 *  Số lượt cài đặt **1.000+**
 *  Phiên bản WordPress ** 6.5 hoặc cao hơn **
 *  Đã kiểm tra lên đến **7.1.4**
 *  Phiên bản PHP ** 7.4 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/woocommerce-coupon-shortcodes/)
 * Thẻ
 * [coupon](https://vi.wordpress.org/plugins/tags/coupon/)[discount](https://vi.wordpress.org/plugins/tags/discount/)
   [marketing](https://vi.wordpress.org/plugins/tags/marketing/)[shortcode](https://vi.wordpress.org/plugins/tags/shortcode/)
   [woocommerce](https://vi.wordpress.org/plugins/tags/woocommerce/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/woocommerce-coupon-shortcodes/advanced/)

## Đánh giá

 4.9 trên 5 sao.

 *  [  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)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/woocommerce-coupon-shortcodes/reviews/)

## Những người đóng góp

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

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/woocommerce-coupon-shortcodes/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://www.itthinx.com/shop/)