Customer Phone Number Field on Registering

4 1 2

Hey everyone,
I hope you're staying safe in the current situation

I am adding an extra field to the "Customer Registration" form, which is the phone number. However, I cannot succesfully pass the number so it appears in the admin panel under the customer's "Phone Number" field. 

Here's my code: 

<div class="form-group required">
            <label  class="col-sm-2 control-label" for="phone_number">Phone Number</label>
            <div class="col-sm-10">
              <input type="tel" value="" name="customer[phone_number]" id="phone_number" placeholder="Your Phone Number" {% if form.errors contains "email" %} class="error form-control" {% else %} class="form-control" {% endif %} autocorrect="off" autocapitalize="off">

Thank you for your assistance!

Andrej from Criffel


edit: I just noticed I have some code from the "E-mail" exceptions because I just copied it, but I don't think that is the problem

1 Like