Make address optional at account registration
On this page
By default a customer is required to give a full address to create an account. But you can turn that requirement off to make signing up faster. This is useful if you have a store where people register to see pricing or join a mailing list. You can still require them to give an address later when they buy something.
Note that the address fields stay on the form, they just become optional.
Details that are still required
Even with the address requirement off, a customer must still give:
- Password
- First name
- Last name
Phone, company name and campaign fields are optional either way, so this setting does not change them.
Turn the address requirement off
- Open the Store record.
- Go to Store Variables.
- Create a store variable with Key set to
registration.address_requiredand Value set tofalse. - Save the record.
:::warning
The value must be false, in any capitalization, so False and FALSE work too. Anything else leaves addresses required, including no, 0, and an empty value. There is no error or warning if you type something else, so check the value if the form does not change.
:::
To put the requirement back, set the value to true or delete the store variable. Both work, because the address is required unless the variable explicitly says false.
What this does not change
Checkout is unaffected. This setting applies to the account registration form only. A customer who registers without an address is still asked for one at checkout, on every order.
Existing accounts are untouched. Turning the requirement off does not remove or alter an address anyone has already given.
Your theme needs no change. The form marks each field as required or not, and the shipped theme reads that marking to decide whether to show a required indicator. A custom theme that does the same picks the change up automatically. Registration fields carry no browser-level required attribute either way, so nothing in the browser blocks a blank address.
Check it worked
Open your storefront’s registration page as a signed-out visitor. The address fields are still shown, but no longer marked as required. Fill in only email, password, first name and last name, and confirm the account is created and you are signed in.
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.