WooCommerce Discounts: Apply Only When Customers Qualify
In this article
This guide shows you how to make WooCommerce discounts apply only when customers qualify, so you can offer promotions to specific groups without affecting everyone. You'll learn to use built-in coupon settings and free/paid extensions to set conditions like minimum spend, user role, or product category. By the end, you'll be able to control exactly who sees and uses your discounts.
What You'll Need
- A WordPress site with WooCommerce installed and active.
- Admin access to the WordPress dashboard.
- For advanced conditions (user role, product category, etc.), a plugin like WooCommerce Advanced Coupons or WooCommerce Conditional Discounts (free or paid).
- Basic understanding of WooCommerce coupon creation.
Step-by-Step
- Log in to your WordPress admin and go to WooCommerce > Coupons.
- Click Add coupon to create a new coupon.
- Enter a Coupon code (e.g., WELCOME10) and give it a description.
- In the General tab, set the Discount type (e.g., Percentage discount) and the Coupon amount (e.g., 10).
- Set the Usage limits if needed (e.g., usage limit per user).
- Go to the Usage restriction tab. Here you can set basic conditions:
- Minimum spend: Enter a minimum cart total (e.g., 50) to require before the coupon applies.
- Maximum spend: Enter a maximum cart total if you want to exclude large orders.
- Individual use only: Check this if the coupon cannot be combined with other coupons.
- Exclude sale items: Check if you want the coupon to not apply to products already on sale.
- Products: Leave blank to apply to all, or select specific products.
- Exclude products: Choose products to exclude.
- Product categories: Select specific categories where the coupon applies.
- Exclude categories: Choose categories to exclude.
- Allowed email addresses: Enter emails that can use the coupon (optional).
- Save the coupon.
- To add more advanced conditions (like user role or first purchase), install a plugin. For example, with WooCommerce Advanced Coupons:
- After installing and activating, edit your coupon.
- Scroll to the Advanced Coupons section.
- Add conditions like User role (e.g., 'customer'), User logged in, or Cart contains specific items.
- Set the condition logic (All/Any).
- Save the coupon.
- Test the coupon by adding items to your cart and applying the code. Check that it only works when conditions are met.
Common Mistakes
- Not setting a minimum spend – If you forget, the coupon applies to any order, even small ones.
- Using product categories incorrectly – If you select categories, the coupon only applies to products in those categories, not the whole cart. Customers may be confused.
- Overlooking usage limits – Without limits, one customer can use the coupon unlimited times.
- Forgetting to exclude sale items – This can stack discounts unexpectedly.
- Assuming all conditions work together – Some plugins use 'any' logic, meaning only one condition needs to be met. Check the plugin settings.
Tips
- Use minimum spend to increase average order value.
- Create different coupons for different user roles (e.g., wholesale vs retail) using a plugin.
- Set a clear expiry date to create urgency.
- Test with a private coupon before making it public.
- Use exclude sale items to avoid double discounts.
- For complex conditions, consider using a dedicated conditional discounts plugin that allows you to set rules without coding.
Troubleshooting
Coupon not applying at all
- Check that the coupon is published and not expired.
- Verify that the cart meets all conditions (minimum spend, product categories, etc.).
- Clear any caching plugins and test again.
- Check if another coupon is already applied (if individual use only is set).
Coupon applies when it shouldn't
- Review the condition logic – if using 'any', the coupon may apply if only one condition is met.
- Ensure you have excluded the correct categories or products.
- Check if the coupon is set to apply to all products by default.
Conditions not showing up
- Make sure the plugin is active and updated.
- Look for the conditions in the correct tab (often a separate section after the standard coupon fields).
Frequently Asked Questions
Can I set a discount for first-time customers only?
Yes, with a plugin like Advanced Coupons, you can add a condition 'User has not purchased before'. Alternatively, you can manually track emails.
How do I make a discount apply only to logged-in users?
Use a plugin that adds a 'User logged in' condition, or create a coupon and restrict it by email addresses (though that requires manual entry).
Can I have different discount percentages for different user roles?
Yes, create separate coupons for each role and use a plugin to set the condition 'User role' for each coupon.
Why is my coupon applying to the whole cart when I only wanted it for a specific product?
In the coupon's usage restriction, select the specific product(s) under 'Products'. If you leave it blank, the coupon applies to all items.
Can I set a minimum quantity of items instead of a minimum spend?
Yes, some plugins allow 'Minimum quantity' conditions. Alternatively, you can use a minimum spend that roughly matches the price of the items.
Do these conditions work with subscription products?
Most standard conditions work, but for subscriptions, ensure your coupon is set to apply to the initial payment or recurring amount as per your subscription plugin settings.