Coupon ShortcodesDeveloped by itthinx
The Coupon Shortcodes extension 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.
It provides the following conditional shortcodes that allow to enclose content which is shown if coupons are applied, valid or not valid.
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]– renders a coupon code
[coupon_description]– renders a coupon’s description
[coupon_discount]– renders information about the discount of a coupon
[coupon_show]– renders coupon code, discount info and description together
A coupon enumerator shortcode allows to list all or a set of coupons, to show their code, description or discount information:
Please refer to the plugin’s documentation for detailed descriptions.
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]
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]