1. Documentation /
  2. Smart Coupons /
  3. How to auto-apply coupon

How to auto-apply coupon

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 using Smart Coupons you can configure coupons to get auto-applied.

There can be many occasions when you want to auto-apply or force-apply a coupon for purchases on your store. For example – during a sale period, holiday season, store anniversary, etc.

Steps to create/set auto-apply coupons

↑ Back to top
  1. Go to your WordPress admin panel. Under Marketing > Coupons, click on Add coupon. You can also modify your existing coupon.
  2. Set the discount type, coupon amount, expiry and other details.
  3. Look for the ‘Auto apply?’ option. Enable it. 
  4. Set usage limits and other restrictions as per your requirements. Publish/Update the coupon.
Auto apply coupon

Important notes for auto-apply coupons

↑ Back to top
  1. Auto-apply feature will trigger only when there’s something in the cart
  2. Smart Coupons will check the validity and all the restrictions and limits set for the coupons before auto-applying them.
    For example – If you restrict a coupon to “Customer” user role and “Stripe” payment gateway, the plugin will first verify whether these restrictions are met and then apply the coupon.
  3. Up to five coupons can be auto-applied by default even if you’ve enabled the ‘Auto apply?’ option in more coupons. If required, you can extend this limit using the following steps
    1. Open your website’s database
    2. Go to table ‘<prefix>options‘ (e.g. wp_options)
    3. Search for a record having option_name like ‘wc_sc_max_auto_apply_coupons_limit
    4. If you find it, set its corresponding option_value as the number of auto-apply coupons allowed to be applied
    5. If you don’t find it, insert a record in the same table with option_name as ‘wc_sc_max_auto_apply_coupons_limit‘ and option_value as the number of auto-apply coupons allowed to be applied. That’s it.
  4. Your users can remove any auto-applied coupon if they wish to. But if you want to change this behavior and you don’t want to allow your customer to remove auto-applied coupons, you can follow these steps:
    1. Open your website’s database
    2. Go to table ‘<prefix>options‘ (e.g. wp_options)
    3. Search for a record having option_name like ‘wc_sc_auto_apply_coupon_removable
    4. If you find it, set its corresponding option_value as ‘no
    5. If you don’t find it, insert a record in the same table with option_name as ‘wc_sc_auto_apply_coupon_removable‘ and option_value as ‘no‘. That’s it.
  5. You can bulk generate coupons with the auto-apply feature.
  6. Auto-apply feature works with subscription coupons as well.
  7. Auto-apply feature is not applicable for gift cards/store credits. That means users can’t auto-apply gift cards/store credits.
  8. Auto-apply will not be enabled for coupons that are linked to a product. That means when you issue any coupon with a product purchase, that coupon will need to be manually applied by the users on their next purchase.

WooCommerce

The most customizable eCommerce platform for building your online business.

  • 30-day money-back guarantee
  • Support teams across the world
  • Safe and secure online payment