Buy B2BKing
$299 $199
You may want to have separate B2B and B2C registration pages, or even separate My Account areas. In this article, we discuss the available options.
Note: This feature is available only in the paid B2BKing (Pro) versions.
First, here is how the default registration works. It uses a single "User Type" dropdown with multiple B2C/B2B options (also known as registration roles):
Choosing an option (registration role) will display only the registration fields for that role.
You can see how this works in our live demo here (click on "Create an account").
This dropdown is enabled or disabled through the setting in B2BKing -> Settings -> Registration -> Enable Dropdown & Fields:
If you prefer to have separate pages rather than this dropdown, you can completely separate the two types of registration by following these steps:
Step 1. In B2BKing -> Settings -> Registration, disable the dropdown setting:
Step 2. Create a new WordPress page for B2B registration.
Step 3. Insert one of the registration shortcodes into the newly created page:
In order to see the registration form (and not just the login form), the following setting must be enabled: go to WooCommerce -> Settings -> Accounts and enable "Allow customers to create an account on the 'My account' page".
This opens the registration shortcode configurator:
Here you can see a shortcode for each registration role and check the box to include the login form if needed.
Example
On our test site, we want to create a registration form only for wholesalers, with both login and registration. We open the registration shortcode configurator, check the login box, and then copy the shortcode:
We copy the shortcode [b2bking_b2b_registration registration_role_id=12] and add it to a new page.
Please note that the specific shortcode (and registration_role_id) is unique to each site, so you must use the configurator on your own site.
The My Account page automatically adapts and shows different content to B2B and B2C users, so it is not necessary to have a separate My Account page. In most cases, we do NOT recommend it, as it can create issues.
However, if you must have different account pages, here is how to set that up:
If you'd like to add a separate login form to a page, you can use:
[b2bking_login_only] for the Login form only
Powered by BetterDocs