How to Configure Customer Name and Address Options in Magento?

While creating new accounts, your customers have to fill in some of their personal information. Depending on the policy of your store, you can add or remove the fields that contain customer name and address data and set them up according to your needs.

Magento 2 customer account settings are very flexible in this regard. So, in this article, we'll explain how to do that. 

To configure customer name and address options in Magento 2, take the following steps:

1. Go to Stores > Settings > Configuration > Customers > Customer Configuration > Name and Address Options.

Note: You have to clear the Use System Values checkboxes to configure all the fields, or you can enable those checkboxes to use the default options. 

2. Enter the Number of Lines in a Street Address. The default value is 2, however, you can use a different number on the scale from 1 to 4. 

3. In the Show Prefix field, choose either Optional or Required to use the name prefix in the new customer account forms. You can disable the feature by choosing No.

4. Add the Prefix Dropdown Options, for instance, Mr., Mrs., Ms., and separate them with semicolons (;). If you want to have a blank row as an option on the top of the dropdown list, put the semicolon before the first prefix. 

Customer Name and Address Configuration

5. Choose whether to Show Middle Name or not.

6. Set the Show Suffix field to Optional or Required, if you want to apply it in the new customer account form. You can also select No to disable the option. 

7. Fill in the Suffix Dropdown Options (e.g. Sr., Jr., PhD), separating them with semicolons (;). For a blank row to be an option on the top of the list, put a semicolon before the first suffix.

Magento 2 Customer Name and Address Options

8. In the next fields, namely Date of Birth, Show Tax/VAT Number, Show Gender, Show Telephone, Show Company, and Show Fax, select one of the following options:

  • No (disables the corresponding field)
  • Optional (makes the field optional, so it's up to customers whether to fill it out or not)
  • Required (makes the field required, so customers cannot omit it while creating their accounts)

Customer Name and Address Configuration

9. Press the Save Config button.

This is an example of what the described configuration can look like on the frontend. 

Customer Name and Address Options on the Frontend

As you can see, Magento customer name and address configuration settings are truly as simple as that. Nevertheless, you should also pay attention to the other customer account options.