Saving the phone number from the registration form on right place

Anne-Marieke
Excursionist
40 1 4

So by now I doubt this is even possible, but I've added some extra fields to my registration form and I want the phone number that's filled in there so be saved in the customers account, so that we can call them after creating an account. I've already used the 'tag' and 'note' place for their website and Chamber of Commerce number.

I prefer to not use a separate app for this, because all the separate subscriptions add up quite a bit monthly. 

The piece of code that I'm trying now:

 

 

        {%- assign formId = 'RegisterForm' -%}
         {% form 'create_customer', id: formId %}
          {% include 'form-status', form: form, form_id: formId %}

          <label for="{{ formId }}-FirstName">{{ 'customer.register.first_name' | t }}</label>
          <input type="text" name="customer[first_name]" id="{{ formId }}-FirstName" {% if form.first_name %}value="{{ form.first_name }}"{% endif %} autocomplete="given-name" required>

          <label for="{{ formId }}-LastName">{{ 'customer.register.last_name' | t }}</label>
          <input type="text" name="customer[last_name]" id="{{ formId }}-LastName" {% if form.last_name %}value="{{ form.last_name }}"{% endif %} autocomplete="family-name" required>

          <label for="website">Website</label>
          <input list id="website" name="customer[note]" required>

          <label for="KVK-nummer">KVK-nummer</label>
          <input list id="KVK-nummer" name="customer[tags]" pattern="[0-9\-]*">
        
          <label for="AddressPhoneNew">{{ 'customer.addresses.phone' | t }}</label>
          <input type="tel" name="customer[phone]" pattern="[0-9\-]*" id="{{ formId }}-Phone" {% if form.phone %}value="{{ form.phone }}"{% endif %} autocomplete="phone" required>
        
          <label for="{{ formId }}-email">{{ 'customer.register.email' | t }}</label>
          <input
            type="email"
            name="customer[email]"
            id="{{ formId }}-email"
            class="{% if form.errors contains 'email' %} input--error{% endif %}"
            {% if form.email %} value="{{ form.email }}"{% endif %}
            autocorrect="off"
            autocapitalize="off"
            autocomplete="email"
            aria-required="true"
            {%- if form.errors contains 'email' -%}
              class="input--error"
              aria-invalid="true"
              aria-describedby="{{ formId }}-email-error"
            {%- endif -%}
          >
          {%- if form.errors contains 'email' -%}
            <span id="{{ formId }}-email-error" class="input-error-message">
              <span class="visually-hidden">{{ 'general.accessibility.error' | t }} </span>
              {% include 'icon-error' %}
              <span>{{ form.errors.translated_fields['email'] | capitalize }} {{ form.errors.messages['email'] }}.</span>
            </span>
          {%- endif -%}

          <label for="{{ formId }}-password">{{ 'customer.register.password' | t }}</label>
          <input
            type="password"
            name="customer[password]"
            id="{{ formId }}-password"
            class="{% if form.errors contains 'password' %} input--error{% endif %}"
            aria-required="true"
            {%- if form.errors contains 'password' -%}
              class="input--error"
              aria-invalid="true"
              aria-describedby="{{ formId }}-password-error"
            {%- endif -%}
          >
          {%- if form.errors contains 'password' -%}
            <span id="{{ formId}}-password-error" class="input-error-message">
              {% include 'icon-error' %}
              <span>{{ form.errors.translated_fields['password'] | capitalize }} {{ form.errors.messages['password'] }}.</span>
            </span>
          {%- endif -%}
 			<p class="text-center">
				Bestellen op onze webshop is uitsluitend mogelijk voor geregistreerde samenstellers van kerstpakketten en relatiegeschenken. <br>
				<br>
              	Bent u een consument of bedrijf en heeft u een vraag? Dan verwijzen we u graag naar het contactformulier linksonderin op deze pagina.
			</p>
          <p class="text-center">
            <input type="submit" value="{{ 'customer.register.submit' | t }}" class="btn">
          </p>

        {% endform %}

 

 

(but I've tried a lot of different things)

Which looks like this:

Screenshot 2023-10-12 at 14.47.36.png

 

When an account is made, looks like this for the admins:

Screenshot 2023-10-12 at 14.42.04.png

So the phone number I entered is stored nowhere. But I'd like it to be saved here:

Screenshot 2023-10-12 at 14.43.16.png
I'm using the Debut theme.
If you need any more information to answer my question properly, please let me know.

Thank you in advance.

Reply 1 (1)

Brett_Helium
Shopify Partner
187 37 68

Hey @Anne-Marieke,


I know you specifically mentioned not wanting to use an app, but unfortunately as far as I am aware that is currently the only method possible to accomplish this - either developing your own custom app, or using a public app such as Helium Customer Fields.

If you want to do something without an app, I believe your only options would be to save a value either to the customer note or as a tag, which it sounds like you are already aware of.

Brett | Helium
Helium builds apps that thousands of merchants depend on:
- Customer Fields ✪✪✪✪✪ (330+ reviews)
- Meteor Mega Menu ✪✪✪✪✪ (250+ reviews)