Okay
  Public Ticket #2803622
Coupons restrictions
Closed

Comments

  •  1
    Calvin started the conversation

    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,214
    WebWizards replied

    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

  •  1
    Calvin replied

    Hi Stefan, it is working perfectly now. Thanks a lot.

  •  2,214
    WebWizards replied

    Awesome, glad to hear that!