The registration form has several options:
- Prevent automatic login on registration: If checked the new user is not allowed to login before he / she have confirmed his e.mail address
- First name: Check this if you want it in the registration form
- First name (label): Set the label for this field if i.e you want a custom label or translation missing.
- First name (required): Check if you want it to be a required field
- Last name: Check this if you want it in the registration form
- Last name (label): Set the label for this field if i.e you want a custom label or translation missing.
- Last name (required): Check if you want it to be a required field
- Phone: Check this if you want it in the registration form
- Phone (label): Set the label for this field if i.e you want a custom label or translation missing.
- Phone (required): Check if you want it to be a required field
- Company: Check this if you want it in the registration form
- Company (label): Set the label for this field if i.e you want a custom label or translation missing.
- Company (required): Check if you want it to be a required field
- Email (required): This is a default field that needs to be in the form – or a user will not be added
- Email (label): Set the label for this field if i.e you want a custom label or translation missing.
- Address line 1: Check this if you want it in the registration form
- Address line 1 (label): Set the label for this field if i.e you want a custom label or translation missing.
- Address line 2: Check this if you want it in the registration form
- Address line 2 (label): Set the label for this field if i.e you want a custom label or translation missing.
- City: Check this if you want it in the registration form
- City (label): Set the label for this field if i.e you want a custom label or translation missing.
- Postcode / ZIP: Check this if you want it in the registration form
- Postcode / ZIP (label): Set the label for this field if i.e you want a custom label or translation missing.
- Country / Region: Check this if you want select country / region in the registration form
- Country / Region (label): Set the label for this field if i.e you want a custom label or translation missing.
- State / County: Check this if you want it in the registration form
- State / County (label): Set the label for this field if i.e you want a custom label or translation missing.
- User roles (label): Set the label for this field if i.e you want a custom label or translation missing.
- User roles: Select (multiple if you like) roles a user can request. The selection will be a select dropdown box in the form. We recommend to set up roles with the Pending (no rights). If no roles is selected the select dropdown will not be shown in the form.
- Customer message: Check this if you want an extra text (text area) input field on the registration form. Here you can get additional information from the new customer. The information entered here will be found on the customer / user (with the date submitted).
- Customer message (label): Set the label for this field if i.e you want a custom label or translation missing.
Using the registration form
The form will be used in the “My account” page. So this is the steps to get this working:
- Go to WooCommerce > Settings > Accounts & Privacy
- In Account creation check: Allow customers to create an account on the “My account” page
- Check any other here if you like (we recommend automatically generate password to)
- Save changes
- Go to WooCommerce > Roles & Rules B2B > Roles (tab)
- Add roles you want to use in the form:
- Request B2B role (example) with capabilities Pending (no rights)
- This gives you a role the user can use on registration, but you need to change to i.e B2B if you approve the user
- Add roles you want to use in the form:
- Go to WooCommerce > Settings > Roles & Rules B2B
- Check the fields you want in the form
- Check the roles you want a user to have – we recommend pending roles like in 2.1 (above). If you add roles with read or more (capabilities) then the user can login right after he has done the registration. So for security of your site we recommend this (pending roles).
- Save changes
- Go to yourdomain.com/my-account/ (or the like where you have the “My account” page)
- Now your registration form should be visible (if not already logged inn)