Magento 2 Address fields on Customer Registration

This post shows you how to add the customer address fields to the customer registration page.

Simply use the setShowAddressFields method to display the address fields on the registration page.

Create file: view/frontend/layout/customer_account_create.xml

See another article about adding a Custom Field to the Billing Address in the checkout.