• Resolved wholets

    (@wholets)


    Hello,

    I’ve followed this instruction to sync “User Role” with “Customer Group”,

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

    after that, I created a registration form (using Jetformbuilder) and in the registration form I set up that the new user should be in a b2b role, but after registration, the user has double roles (b2c role and b2b role) and the “Customer Group” is b2c. After going to user edit and pressing update, the b2b role deletes and stays only the b2c role and b2c “Customer Group” which was there already…

    how it is possible that after registration user gets a b2b “User Role” only and a b2b “Customer Group” same time? I thought sync meant if a new user role b2b is registered it would be automatically added to the b2b “Customer Group”

Viewing 1 replies (of 1 total)
  • Plugin Author WebWizards

    (@webwizardsdev)

    Hi there,

    Thank you for using our plugin,

    I am sorry but this works the other way around: it sets the WP role based on the B2BKing group. It cannot set the group based on the WP role.

    If you are using Jetformbuilder for registration, does it have an option to set some user meta keys? Many forms plugins such as WP Forms / Gravity Forms etc usually have a way to do this. If you are not sure, I recommend you ask their team.

    If you can set some meta keys with the forms plugin, you need to set the 2 keys described here: https://woocommerce-b2b-plugin.com/docs/how-to-set-user-group-programmatically-during-import-in-bulk-with-scripts/

    Those keys control if the user is B2B in B2BKing.

Viewing 1 replies (of 1 total)
  • The topic ‘Regular Registration does not change Customer Group’ is closed to new replies.