1. Home
  2. Docs
  3. Roles & Rules B2B
  4. Settings
  5. Registration form

Registration form

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:

  1. Go to WooCommerce > Settings > Accounts & Privacy
    1. In Account creation check: Allow customers to create an account on the “My account” page
    2. Check any other here if you like (we recommend automatically generate password to)
    3. Save changes
  2. Go to WooCommerce > Roles & Rules B2B > Roles (tab)
    1. Add roles you want to use in the form:
      1. Request B2B role (example) with capabilities Pending (no rights)
      2. 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
  3. Go to WooCommerce > Settings > Roles & Rules B2B
    1. Check the fields you want in the form
    2. 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).
    3. Save changes
  4. Go to yourdomain.com/my-account/ (or the like where you have the “My account” page)
    1. Now your registration form should be visible (if not already logged inn)
Register form

How can we help?