Smart coupon for WooCommerce generates coupon codes seamlessly in different ways. In addition to coupon codes, a shortcode is generated for each coupon. These shortcodes can be used to display coupons for promotions or various other purposes.
The coupons displayed in this manner can be viewed by any blog visitor irrespective of their user role. This means that the coupons can be viewed or shown for registered users as well as guest users. Shortcodes are primarily advantageous in cases where you need to display all available coupons of your store.
In this article, let us see how a coupon with a pre-defined format can be displayed on a blog post.
Select an existing coupon or create a new coupon to copy its shortcode. For example, let us consider the coupon with a coupon code eoss50.
The shortcode corresponding to the coupon eoss50 is [wt-smart-coupon id=2664].
Now, we can use this shortcode in our blog to display the coupon. For an illustration purpose, I have created a sample blog as shown below:
Publish or preview the post to get its front end view as shown below:
Likewise, you can use shortcodes to display coupons on posts or pages for promotions or for any other purposes if any.
The coupon layout is extracted from the predefined style chosen for the coupon from the coupon style settings as shown below.
You can modify or customize the coupon layout in your desired manner from the coupon styling section.
Additionally, you can link shortcodes with a coupon URL and get applied automatically when redirected.