1. Documentation /
  2. Smart Coupons /
  3. How to Display Available Coupons on Any Page (Using Shortcode)

How to Display Available Coupons on Any Page (Using Shortcode)

Smart Coupons provide a powerful, “all-in-one” solution for gift cards, store credits, discount coupons, and vouchers extending the core functionality of WooCommerce coupons.

This doc article explains how you can use a shortcode to display available/usable coupons on any page on your WooCommerce store.

By default, the Smart Coupons plugin displays available/usable coupons on the cart, checkout & My Account pages. But if you want to display those coupons on other pages, you can add the shortcode ‘[wc_sc_available_coupons]’ to the page content.

Sample usage

↑ Back to top

The shortcode [wc_sc_available_coupons title="Available Coupons (click on a coupon to use it)"] is used on a page and here’s how it will look:

Note: In the above screenshot, all predefined coupon styles are showing together. It’s only used to display the available type of coupon style. You can set only one coupon style at a time.

Troubleshooting

↑ Back to top

If may happen that coupons may not get displayed using the shortcode. Here are the possible reasons why:

  • No coupons are valid for the cart at that moment. You should check usage restrictions & usage limit of the coupons to confirm if it needs to be displayed.
  • If the coupon is restricted to an email address, the user should be logged in with the same email address to see the coupon. If the user is a guest user then the coupon might be visible only on the checkout page once the user enters the billing email address.