Hi all,
Below is the liquid code of my customers/register.liquid file. I want to make the first and the last name mandatory for registration. How do I do it? Any help will be deeply appreciated.
Code-
{{ 'customer.register.title' | t }}
{{ form.errors | default_errors }}
{{ ‘customer.register.first_name’ | t }}
<input type=“text” name=“customer[first_name]” id=“FirstName” class=“input-full” {% if form.first_name %}value=“{{ form.first_name }}”{% endif %} autocapitalize=“words” autofocus>
{{ ‘customer.register.last_name’ | t }}
<input type=“text” name=“customer[last_name]” id=“LastName” class=“input-full” {% if form.last_name %} value=“{{ form.last_name }}”{% endif %} autocapitalize=“words”>
{{ ‘customer.register.email’ | t }}
<input type=“email” name=“customer[email]” id=“Email” class=“input-full{% if form.errors contains ‘email’ %} error{% endif %}” {% if form.email %} value=“{{ form.email }}”{% endif %} autocorrect=“off” autocapitalize=“off”>
{{ ‘customer.register.password’ | t }}
Confirm Password
{% endform %}