Product Icon

Coupon Shortcodes for WooCommerce

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

L’abonnement comprend

  • Mises à jour gratuites
  • Assistance client gratuite

The Coupon Shortcodes extension for WooCommerce allows you to render coupon information and show content 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.

 

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

A coupon enumerator shortcode allows to list all or a set of coupons, to show their code, description or discount information:

[coupon_enumerate]

 

Documentation

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

 

Examples

Iterate over three coupons showing their code and discount information:

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

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]

Avis Clients

Moyenne des notes 4.7
3 avis
5 étoiles, 67 % des avis
4 étoiles, 33 % des avis
3 étoiles, 0 % des avis
2 étoiles, 0 % des avis
1 étoile, 0 % des avis
3 avis
  • daliyanaturals
    Noté 5 sur 5
    Fonctionnalité
    Oct 4, 2025
    Fonctionnalité
    Good
    • itthinx
      Oct 25, 2025
      Thank you very much!
  • dridrafik34
    Noté 4 sur 5
    Documentation
    Sep 28, 2024
    Documentation
    سهل ومساعد للعمل
    • itthinx
      Oct 10, 2024
      Thank you very much for your feedback! Any suggestions for the extension, please feel free to let us know.
  • ahsanrahim
    Noté 5 sur 5
    Juil 31, 2019
    amazing, perfect, well done. they did a great job.
    I think this is good, perfect amazing.

Extension information

  • PHP version required: 7.4
  • Tested with WordPress: 6.9
  • Tested with WooCommerce: 10.4
  • Requires at least WordPress: 6.5
  • Requires at least WooCommerce: 9.0

Pays

  • Mondial

Related products

Téléchargement gratuit
Noté 3.9 sur 5 étoiles
Téléchargement gratuit
Noté 2.6 sur 5 étoiles
Téléchargement gratuit
Noté 4 sur 5 étoiles
Téléchargement gratuit
Noté 4.3 sur 5 étoiles
Prix $79 par an
Noté 3.4 sur 5 étoiles
Prix $59 par an
Noté 3.1 sur 5 étoiles
Prix $49 par an
Noté 4.1 sur 5 étoiles
Prix $279 par an
Noté 3.2 sur 5 étoiles
Prix $109 par an
Noté 2.8 sur 5 étoiles
Utilisation de vos données personnelles
Nous et nos partenaires traitons vos données personnelles (telles que les données de navigation, adresses IP, informations sur les cookies et autres identifiants uniques) sur la base de votre consentement et/ou de notre intérêt légitime afin d’optimiser notre site web, nos activités marketing et votre expérience utilisateur.