How to display available coupons for all users

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.

Smart coupon for WooCommerce-Shortcodes for coupons
Smart coupon for WooCommerce-Shortcodes for coupons

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.

Smart coupon for WooCommerce-Shortcode example
Smart coupon for WooCommerce-Shortcode example

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:

Smart coupon for WooCommerce-Shortcodes demo- Blog PostSmart coupon for WooCommerce-Shortcodes demo- Blog Post
Smart coupon for WooCommerce-Shortcodes demo- Blog PostSmart coupon for WooCommerce-Shortcodes demo- Blog Post

Publish or preview the post to get its front end view as shown below:

Smart coupon for WooCommerce-Shortcodes demo using blog post
Smart coupon for WooCommerce-Shortcodes demo using a blog post

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

Note:

The coupon layout is extracted from the predefined style chosen for the coupon from the coupon style settings as shown below.

Smart coupon for WooCommerce-Coupon Styles
Smart coupon for WooCommerce-Coupon Styles

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.

 

Leave a Reply

Your email address will not be published. Required fields are marked *