Shopify themes, liquid, logos, and UX
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:
When an account is made, looks like this for the admins:
So the phone number I entered is stored nowhere. But I'd like it to be saved here:
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.
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.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024