Okay
  Public Ticket #3218569
Add option to automatically update user role based on B2B customer role
Closed

Comments

  •  1
    Dakota Clark started the conversation

    I would like B2BKing plugin to be able to automatically assign a user to a different user role based on the B2B customer role.  If a customer has been assigned to the B2B customer group, then B2BKing would assign them the user role "wholesale", for example.  B2C customers, in this example, could stay as "customer".  

  •  2,218
    WebWizards replied

    Hi Dakota,

    It is possible to make B2BKing "Sync" its own B2B groups with the WordPress role. For that, please see our instructions here:

    https://woocommerce-b2b-plugin.com/docs/how-to-use-wp-roles-with-b2bking/

    After doing that, the plugin will add WP roles to the site that are named the same as the groups, and will try to make sure that customers have the correct role depending on their group


    One thing to mention though is that customers will also have the 'customer' role. They will have multiple roles at the same time. In our opinion this is the correct way to do it because every WooCommerce customer (whether B2B or B2C) should have the customer role for things like Analytics to work correctly.


    Kind regards,

    Stefan