Hello! Does anyone know how I can add a “Re-enter your email address” field to my Customer Registration page? This is to implement the rather common practice of having people enter their email twice, and checking that the addresses match before letting them submit.
I am using the Dawn theme and looking at the code for main-register.liquid, thinking that I can do something here: https://store.alohadays-kitchen.com/account/register
Nearly all of my customers are on mobile phones, and it’s far too easy to mistype an email address. I regularly have customers with login issues because they mistyped their email when creating their account.
Here is the current page code in main-register.liquid:
#
{{ 'customer.register.title' | t }}
{%- form 'create_customer', novalidate: 'novalidate' -%}
{%- if form.errors -%}
##
{{ 'templates.contact.form.error_heading' | t }}
{%- for field in form.errors -%}
- {%- if field == 'form' -%}
{{ form.errors.messages[field] }}
{%- else -%}
{{ form.errors.translated_fields[field] | capitalize }}
{{ form.errors.messages[field] }}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- if form.errors contains 'email' -%}
{{ form.errors.translated_fields['email'] | capitalize }} {{ form.errors.messages['email'] }}.
{%- endif -%}
{%- if form.errors contains 'password' -%}
{{ form.errors.translated_fields['password'] | capitalize }} {{ form.errors.messages['password'] }}.
{%- endif -%}
{%- endform -%}