Discount Sale
  • Days
  • Hrs
  • Mins
  • Secs
30% Off

Use coupon code 'MDS30' Limited Offer!!

Star

Home > Docs > Smart Coupons for WooCommerce > Display WooCommerce Coupons Using Shortcodes

Display WooCommerce Coupons Using Shortcodes

Last updated on February 7, 2025

The Smart Coupons for WooCommerce plugin offers a seamless way to generate and manage coupon codes. By default, the plugin automatically generates shortcodes for all available coupons in your store. These shortcodes can be used to showcase discounts and promotions across various sections of your website, including product pages, blog posts, and custom content areas.

One of the key advantages of using shortcodes is that they allow any visitor, regardless of user role (including guest users), to view the available coupons. This makes it easy to highlight special offers and encourage conversions without requiring customers to log in. To display coupons using Shortcodes:

  1. Head to Smart Coupons > All coupons.
  2. Copy the required shortcodes.
  3. Paste the shortcodes in posts, blogs, or the edit window of any page in the store.

Getting started

To access the shortcodes:

  • From the WordPress admin dashboard, navigate to Smart Coupons > All Coupons.
  • Under the Shortcode section of the table, copy the shortcodes to any coupon in the store.
Smart Coupons for WooCommerce - Shortcodes for coupons
Smart Coupons for WooCommerce – Shortcodes for coupons

Display coupons in blogs or posts

To display coupons in a pre-defined format on any blog post, follow the given steps:

  • First, select an existing coupon or create a new one to copy its shortcode.
  • To illustrate, consider the coupon with the coupon code flat30.
Smart Coupons for WooCommerce - Shortcode example
Smart Coupons for WooCommerce – Shortcode example
  • The shortcode corresponding to the coupon flat30 is [wt-smart-coupon id=116].
  • Once you have copied the shortcode, paste it into any blog post to display the coupons.

For example, consider the blog shown below:

Smart Coupons for WooCommerce - Shortcodes demo using blog post
Smart Coupons for WooCommerce – Shortcodes demo using blog post

Publish or preview the post to view the coupon.

Smart Coupons for WooCommerce - Shortcodes demo using a blog post
Smart Coupons for WooCommerce – Shortcodes demo utilizing a blog post

Likewise, you can use shortcodes to display coupons on posts or pages for promotions or other purposes.

Display All Available Coupons Using Shortcodes

Throughout the purchase process, customers can benefit from multiple available coupons. Use the provided shortcode to display all available coupons in one place. The coupons can be shown in various locations, giving you the freedom to pick and choose according to your preferences.

Displaying all available coupons on a custom page

  • A custom page named ‘Coupons List’ is added to the main menu to display all available coupons.
Smart Coupons for WooCommerce - Shortcodes demo using a custom page
Smart Coupons for WooCommerce – Shortcodes demo using a custom page
  • Now, use the shortcode [wt_sc_user_available_coupons] on the custom page editor window to display all available coupons.
Smart Coupons for WooCommerce - Shortcodes demo using a custom page
Smart Coupons for WooCommerce - Shortcodes demo using a custom page
Shortcodes demo using a custom page – Smart Coupons for WooCommerce
  • Then, the coupon list will look as shown below.
Smart Coupons for WooCommerce - Shortcodes demo using a custom page
Smart Coupons for WooCommerce – Shortcodes demo using a custom page

Also, try adding the coupons to the ‘cart page,’ ‘product page,’ or any custom page to display all available coupons.