In the ever-evolving world of e-commerce, providing tailored discounts and incentives has become a powerful strategy to engage customers and boost sales. With the capabilities of the Smart Coupons for WooCommerce plugin by WebToffee, this article aims to explain how to offer a discount exclusively to customers who have made purchases within the last X days from the store. To set up this discount.
- Navigate to Add coupon page.
- Configure the coupon as needed.
- Navigate to the Purchase history tab.
- Set the order threshold to provide the offer.
- Select within the last from Order date section.
- Specify the number of days.
- Publish the coupon.
Use case
Provide a flat $20 discount for users who have purchased something from the store within the last 10 days.
Setting up the coupon
To set up the discount:
- From the WordPress admin dashboard, navigate to Smart Coupons > Add coupon.
- Key in a Coupon code and description.
- Navigate to the Coupon data metabox.
- From the General tab, select the Discount type as Fixed cart discount and set the Coupon amount to 20.

- Navigate to the Purchase history tab.
- From the Number of orders drop-down, select greater than or equal to and set the value to 1. Now, the coupon is only valid for users who have purchased at least one product from the store.
- Set the Order date to within the last 10 days and enter the value 10 in the field. For the coupon to be valid, one of the user’s past orders must have been placed within the last ten days.
- Additionally, enable Exclude already awarded customers to restrict the coupon usage to once per user.

- Alternatively, you can use the Usage restriction, Usage limits, and other tabs to set up additional restrictions and conditions.
- Publish the coupon.
Now, customers who have purchased something from the store in the last 10 days can use this coupon to avail of a flat $20 discount on their next order.
Comments (2)
ilse
April 21, 2026
Hi,
This used to work until yesterday. Nothing has been changed to the requirements, howwever, every new customer can now receive the 20% reduction at my site glycanensupplementen.nl. Despite the fact that I have limited it to 1 recent order in the past 30 days.
I wonder if something has been changed in your plugin?
Sanjai Valsan
April 22, 2026
Hi Ilse,
Thanks for reaching out,
I’ve checked with our team, and since we haven’t released any updates recently, the issue is likely related to your site’s specific settings or a conflict with another plugin.
Please double-check two things:
1. The Logic: Ensure your condition is set to ‘equals 1’ order. If it’s set to ‘Greater than,’ it might be allowing the wrong customers to use it.
2. Conflicts: Try a quick test with only WooCommerce and Smart Coupons active to see if another plugin is interfering with the order check.
For a better solution, please contact our support, so we can look at your specific settings and help you get this fixed.