With the auto-apply coupon, customers needn’t have to manually enter the coupon code to redeem it. Smart Coupons for WooCommerce plugin automatically redeems coupons if satisfying discount conditions and cart conditions are available.
The plugin allows setting five auto-apply coupons at a time.
Let us go through some of the benefits of this auto coupon apply feature:
- No need to enter the code manually
- Removes copy-paste errors
- Needn’t have to remember the code
- Surprise and delighted customers
Getting started
- First of all, install and activate the plugin, a new menu Smart coupon will appear in your WordPress dashboard.
- Head on to Smart coupon > Coupons. Then, follow the given steps:
Steps to create auto-apply coupon
- From the coupon window which opens up, click on Add coupon to create a new coupon.
- Input the Coupon code and Description in repective fields.
- From the General tab, configure the Discount type and Coupon amount.
- Scroll down and enable the option Apply coupon automatically.
- Finally, publish the coupon.

The above-configured coupon is a simple coupon that will auto-apply to the cart.
If you set up multiple auto-apply coupons, the plugin will check for the eligibility of all these coupons when a customer moves the products into the cart. This may result in high memory usage and thereby slowing down your site.
Therefore, the plugin has effectively dealt with this case by considering only the latest 5 (recently published) for applying automatically.
If your server can handle any number of coupons or if instead of 5, you need to set at least 10 coupons for auto-apply, then just simply use the below-given filter in the active child theme’s functions.php file.
add_filter( 'wt_smartcoupon_max_auto_coupons_limit', function( ) { return 10; } );
The above filter will allow you to have a maximum of 10 coupons (recently published) for the auto-apply option. Replace the number 10 in the code and insert the required number to have as many auto-apply coupons for your store.
The plugin restricts the coupons from applying automatically to a maximum count of five only to facilitate uninterrupted workflow for your store. This restriction will reduce the slowness caused by unnecessary memory usage for verifying the coupon eligibility.
To know more about auto-apply coupons, read here.
- Was this article helpful?
- Yes, thanks!Not really
Comment (1)
Jon Zanoff
October 29, 2021
Auto-applied coupons are the only coupons the user can’t manually remove from the cart. If there’s a way to enable this functionality, eg via a script in the child theme, it would be nice addition to this doc.
The very common use-case is that the coupons can’t be used in conjunction with other coupons, and the customer has a BETTER coupon they’d like to use.