Your wholesale code is loose on the internet.
Native WooCommerce can restrict a coupon by product or email domain. It cannot block a coupon by user role. The moment your wholesale code escapes the gated catalog, retail customers eat your margin.
One coupon code. Different discounts per user role.
Give Customers 10% off, Wholesale 25%, Subscribers a flat $5 - all with one code. Hide the coupon field entirely from the roles you don't want hunting for codes. Write a different rejection message per role. $49.99/yr or $149 once.
WELCOME10
WELCOME10
WELCOME10
Customer = 10%Wholesale = 25%"Subscribers use code SUBS-VIP."WooCommerce coupons are blind to who is using them. A 25% wholesale code leaks to retail customers in a Facebook group. A "first order" code gets reused by repeat subscribers. And when a coupon should not apply to one specific role, the only error WooCommerce shows is "Coupon is not valid" - which tells the customer nothing and triggers a support ticket.
Native WooCommerce can restrict a coupon by product or email domain. It cannot block a coupon by user role. The moment your wholesale code escapes the gated catalog, retail customers eat your margin.
To run a single campaign at different rates, you create three coupons, send three different emails, and pray no one shares the wrong one. The whole reason for a "code" disappears.
WooCommerce's default error is one line for every rejection reason. The customer can't tell if the code is expired, wrong, or simply not meant for them. Support inbox fills up with the same question.
The plugin does four jobs: allow or block coupons per role, vary the amount per role on the same code, hide the coupon field from roles you don't want hunting for codes, and say why with a custom error message - all overridable per coupon.
Set globally or per coupon. Includes the guest pseudo-role so you can lock coupons to logged-in shoppers only.
Mix percentages and fixed amounts in the same coupon. Customer gets 10%, Wholesale 25%, Subscriber a flat $15 off, all from one code.
Wholesale and VIP roles often already get net pricing. Hiding the coupon box stops them asking why they can't see a code field.
Global rules cover the store. Each coupon's own panel can override the role list, the per-role amount, and the error message.
Real stores stack roles (Customer + Wholesale + Subscription). Pick the resolution rule once, apply everywhere.
Wrap any string in the [alg_wc_cbur_translate] shortcode and WPML or Polylang picks it up. No external bridge plugin required.
The plugin reads from WordPress's role registry. If a plugin like WooCommerce Memberships or User Role Editor registered the role, it shows up in the picker.
Upload the .zip from Plugins → Add New, then activate.
WooCommerce → Settings → Coupons by User Role. Tick which roles can use coupons site-wide. Each coupon can override this later.
Open any coupon, scroll to "User Role" panel. Set a different discount value per role. Customer 10%, Wholesale 25%, leave others blank to use the coupon's default.
Add the message customers see when a coupon does not apply to their role. Use %coupon_code% for the code and %coupon_amount% for the amount.
WooCommerce native · single rule |
Advanced Coupons from $99.50/yr · no lifetime |
WebToffee Smart Coupons from $89/yr · no lifetime |
WPFactory $49.99/yr · $149 once |
|
|---|---|---|---|---|
| core: role-based coupon control | ||||
| Block a coupon for selected roles | ✕ | ✓ | ✓ | ✓ |
| Allow a coupon for selected roles only | ✕ | ✓ | ✓ | ✓ |
| Block coupons for guests (no login) | ✕ | ✓ | ✓ | ✓ |
| Works with any custom user role | ✕ | ✓ | ✓ | ✓ |
| same code, different result per role | ||||
| Different discount amount per role on the same coupon | ✕ | ✕ | ✕ | ✓ |
| Mix percentage and fixed amounts per role | ✕ | ✕ | ✕ | ✓ |
| Per-coupon override of global role rules | ✕ | limited | limited | ✓ |
| customer-facing messaging | ||||
| Remove coupon input field per role | ✕ | ✕ | ✕ | ✓ |
| Custom error message per role | ✕ | global only | global only | ✓ |
| %coupon_code% / %coupon_amount% placeholders | ✕ | ✕ | ✕ | ✓ |
| WPML / Polylang shortcode for messages | ✕ | not specified | not specified | ✓ |
| multi-role users | ||||
| Resolution rule when a user has multiple roles | ✕ | not specified | not specified | ✓ |
| "Most generous / least generous / first match" modes | ✕ | ✕ | ✕ | ✓ |
| pricing & ownership | ||||
| Free version on .org | - | ✓ | ✓ | ✓ |
| Lifetime tier | - | ✕ | ✕ | ✓ $149 unlimited sites |
| Multi-store licensing | - | $199.50/yr unlimited | $249/yr for 25 sites | ✓ unlimited sites |
| 10-year cost | $0 | $2,490 | $2,490 | $149 |
| 50+ plugins (All Access) | - | ✕ | ✕ | ✓ |
|
Ready to make every role behave at checkout? ↓
Jump to pricing
|
||||
A hardware merchant runs one storefront for retail and trade. Their SPRING25 campaign goes out in one newsletter. Retail readers get 10% off. Wholesale-tagged accounts get 25% on the exact same code. Marketing stops splitting lists, sales stops policing leaked codes.
Campaign open-rate doubled because there was one email to A/B instead of two. Margin on retail orders held because the code wouldn't fire at 25% for a non-trade buyer.
A digital course platform sells lifetime memberships at a steep price. Once you're in, the coupon field tempts customers to Google around for codes, leading to abandoned checkouts. The plugin hides the field entirely for the "Member" role and shows a custom message to outsiders trying member codes.
Cart abandonment on the membership page fell 18% in 4 weeks. Outside-the-funnel coupon attempts now convert into a click on the join link instead of a bounce.
A WordPress plugin shop runs partner referral codes that should only fire for logged-in customers (so attribution flows to the partner record). Native WooCommerce can't gate by login status. The plugin disables every coupon for the Guest pseudo-role and shows "Sign in to apply your partner code".
Partner attribution stopped leaking. Every coupon now ties to an account, which means commission payouts match what the partner actually drove.
Every WPFactory plugin ships with the same eight guarantees. Here's what running this one looks like in practice.
Hooks WooCommerce's coupon validation chain instead of patching cart totals after the fact. One role check per coupon application. No extra database tables, no admin-page bloat.
The [alg_wc_cbur_translate] shortcode, %coupon_code% and %coupon_amount% placeholders, and every per-coupon override are documented with screenshots and copy-paste examples.
Real bug reports become releases within days, not quarters. If a custom role plugin you use doesn't resolve right, send us a screenshot and we fix it.
14-day refund on yearly and lifetime, 30 days on All Access, no questions asked. If a setup doesn't fit your store's role model, support helps; if it still doesn't work, you walk away whole.
All Access is $499 $299 once for all 50+ plugins, lifetime, unlimited sites, and it includes every plugin we release later. Three lifetime licenses at $199 already cost $597, so the bundle usually wins by your third plugin.
v2.2.2 shipped recently. Tested against the latest WooCommerce within days of every release. HPOS-ready, PHP 8.3 compatible.
Compatible with WooCommerce Subscriptions, WC Memberships, User Role Editor, Groups, WPML, Polylang. Reads roles from the WordPress registry so any third-party role just shows up.
You don't need to touch a hook or filter. Pick the roles in a checkbox list, type the per-role amount, save. The math runs itself on every checkout.
This is what you see inside WordPress once the plugin is activated.
14-day refund on yearly and lifetime, 30 days on All Access. Lifetime pays for itself by year 3. All Access pays for itself by the 4th plugin you'd ever use. Yearly auto-renew can be turned off in your account.
30% off this plugin with code $149 $104.30 lifetime
Or get all 50+ plugins with All Access: $999 $299, save 70%, the lowest price ever. No code needed. This price ends Nov 30.
Buy once. Owns itself by year 3. Use on every site you own.
This plugin + 49 others, lifetime updates, unlimited sites - for $150 more than Lifetime alone.
WELCOME10 can give Customers 10% off, Wholesale 25% off, and Subscribers a fixed $5. No need to create three coupons and police who shares which code.%coupon_code% and %coupon_amount% so the message shows the exact code the customer tried. Replaces WooCommerce's vague "Coupon is not valid" default with something that explains why.[alg_wc_cbur_translate] shortcode you wrap around any custom message. WPML and Polylang pick it up and translate the string per language.Disable any coupon for any role. Set a different discount per role on the same code. Hide the coupon field where you don't want it. Replace WooCommerce's vague rejection with a message that explains why. 200+ stores already running it. 14-day refund if it's not for you.
200+ stores · 4.9★ across 5 reviews · WordPress.org plugin · 14-day refund