Setting Up WooCommerce Custom User Registration Field

Creating Multiple Registration Fields in the Registration Form

Adding New Registration Fields

To add additional registration fields, go to Registration Fields and click on “Add New Field” to generate a customized registration field. During the process of adding a new field, you can:

Add New Field:

Add Title: Enter a unique title for future reference

Field Details: 

Field Label: Enter the text in the “Add Title” section

Field Type: Choose from 19 fields as listed below: 

  • Text
  • Text area
  • Email
  • Select box
  • Multi-select box
  • Checkbox
  • Multi-checkbox
  • Radio button
  • Number
  • Password (accept secret input)
  • File upload (limit file types and size)
  • Color picker
  • Date picker (calendar)
  • Time picker
  • Google ReCaptcha
  • Heading
  • Message

Note: Add field options when you select specific field types.

Field Formatting:

Select from the following format settings: 

Required Field: Enable this to make the field required

Show in WooCommerce Registration Form: Enable this to display the field in the Registration form

Show in WooCommerce My Account: Enable this to display the field in the My Account page

Read Only Field (Customer can not update this from My Account page): Enable this to mark the field as read-only

Show in admin order detail page and order email: Enable this to show in the admin order detail page and order email

Field Width: Choose from these two options: Full Width, Half-Width

Field Placeholder Text: Add Field Placeholder Text

Field Description: Add Field description

Field Custom Css Class: Add Field Custom CSS Class

Field Dependency:

Is Dependable?: Checkmark to make the field dependable

Select User Roles: Select the user roles for which you want to display this field. Leave empty to display fields for all. User roles mentioned here are: 

  • Administrator
  •  Editor
  •  Author
  •  Contributor
  •  Subscriber
  •  Customer
  •  Shop manager
  •  Wholesale
  •  B2B
  •  Retailer
  •  Guest

Field Status:

Select from the following field status settings: 

Field Sort Order: Choose the field sort order

Field Status: Choose to keep it Active or Inactive

Configuring Registration Fields

To access the registration settings, go to Registration Fields > Settings. In this section, you can configure various aspects related to registration.

General Settings

You can easily manage registration field settings from here.

Additional Fields Section Title: This is the title for the section where additional fields are displayed on the front-end registration form

Google reCaptcha Settings: Add the following keys to enable Recaptcha: 

  • Site Key: Add site key to enable Google Recaptcha. You can get the key from Google. Without it, Google reCaptcha will not work.
  • Secret Key: Add a secret key to enable Google Recaptcha. This is Google reCaptcha secret key; you can get this from Google. Without it, Google reCaptcha will not work.

User Role Settings

Manage the user role settings with the following options:

Enable User Role Selection: Enable/disable user role selection on the registration page to show the user role dropdown on the registration page.

User Role Field Label: Add a field label for the user role selection select box.

Select User Roles: Select which user roles you want to show in the dropdown on the registration page. You can choose from the following:

  •  Editor
  •  Author
  •  Contributor
  •  Subscriber
  •  Customer
  •  Shop manager
  •  Wholesale
  •  B2B
  •  Retailer

Note: The administrator role is not available for display in the dropdown.

Approve New User Settings

Manage and approve new users using the below settings: 

Enable Approve New User: Enable this option to place all newly registered users to Pending until the admin approves. 

Enable Approve New User at Checkout Page: Enable/disable the approval of a new user at the checkout page.

Exclude User Roles: Select user roles to exclude from manual approval. These user roles will be automatically approved.

Approve New User Messages Settings: Add messages for new users through the following options: 

  • Message for Users when Account is Created: Add a message to display to the user on completion of the registration process. 
  • Message for Users when the Account is Pending Approval: Add a message to display to the user when he attempts to log in after registration while the account is still pending approval.
  • Message for Users when Account is Disapproved: Add a message to display to the users on the account disapproval. 

Email Settings

Manage emails with the following options:

Admin Email Text (New User): Add text for email notifications regarding new user notifications

Admin Email Text (My Account Update): Add text for email notifications when updating user notification is sent to the admin

User Welcome Email Text: Add text for the email body when a new customer registers

Pending Email Body Text: Add text for the email body when the account is pending approval

Approved Email Text: Add text for approval email messages

Disapproved Email Text: Add text for disapproval email messages

Viewing All Registration Fields

View all registration fields created in a single grid or create new fields.

Search Custom fields: Search a field you want to view

Field Type: Know the field types of all fields  

Status: View field status 

Sort Order: View priority order 

Bulk Actions: Apply bulk actions to all fields: Edit, Move to trash, Active, Inactive

Enabling Default Registration Fields

Enable default WooCommerce registration fields on the registration page. When the user enters these fields, data will be populated on billing fields automatically.

There are ten default fields that you can customize and publish. Below are the settings for each field that you can adjust as per your requirements: 

Label: Add a field label

Placeholder: Add placeholder text

Message: Add a message 

Required: Mark field is required or not. 

Sort Order: Add sort order for the field

Field Width: Add field width

  • Full width
  • Half width

Status: Choose the field status

  • Publish
  • Unpublish