Public Ticket #2803622

Coupons restrictions

Closed
Comments
3 Tickets 1
Calvin started the conversation 5 years ago on June 16, 2021 at 10:32am

Hi

We are trying to restrict B2B user from using Coupons by using the B2BKing restrictions field.

We already tried

"author","contributor","customer","editor","shop_editor","shop_manager","subscriber","b2c","loggedout"

and

author,contributor,customer,editor,shop_editor,shop_manager,subscriber,b2c,loggedout

but both failed (B2B user can still use the coupon). Can you let us know the exact syntax? Thanks.

2,762
KingsPlugins replied 5 years ago on June 18, 2021 at 12:09am

Hi Calvin,

I think you may be having an issue because almost all B2B users also have the customer role (a user can have multiple roles), and you allowed that one.


If you want to restrict B2B users, you can set this field to "b2c, loggedout", like you see in the below image:

2261947829.png


The coupon should show as invalid for B2B users, who should get the following message:

6127601261.png


Kind regards,

Stefan

Sign In