Hello. I’m new here and i need help as i don’t really know liquid codes. Currently, i’m using Minimog theme for our store. We want to add a phone number fields in customer create account and it is compulsory. Can anyone help me solved this?
{%- capture page_title -%}
{{ 'customer.register.title' | t }}
{%- endcapture -%}
{% render 'page-title', title: page_title %}
# {{ 'customer.register.title' | t }}
{% form 'create_customer' %}
{% render 'form__error', form: form %}
{{ 'customer.register.description' | t }}
{% assign show_terms = false %}
{% if settings.agree_text != blank and settings.show_agree_on_register %}
{% assign show_terms = true %}
{% endif %}
{{ 'customer.login.title' | t }}
{% endform %}
I am currently using this code
Hi @ifc-dogan
Could you share code of your main-register.liquid file of your theme?
{%- capture page_title -%}
{{ 'customer.register.title' | t }}
{%- endcapture -%}
{% render 'page-title', title: page_title %}
# {{ 'customer.register.title' | t }}
{% form 'create_customer' %}
{% render 'form__error', form: form %}
{{ 'customer.register.description' | t }}
{% assign show_terms = false %}
{% if settings.agree_text != blank and settings.show_agree_on_register %}
{% assign show_terms = true %}
{% endif %}
{{ 'customer.login.title' | t }}
{% endform %}
Of course, but I don’t want it to save the phone number in the notes, I want it to save it in the customer’s contact details.
{%- capture page_title -%}
{{ 'customer.register.title' | t }}
{%- endcapture -%}
{% render 'page-title', title: page_title %}
# {{ 'customer.register.title' | t }}
{% form 'create_customer' %}
{% render 'form__error', form: form %}
{{ 'customer.register.description' | t }}
{% assign show_terms = false %}
{% if settings.agree_text != blank and settings.show_agree_on_register %}
{% assign show_terms = true %}
{% endif %}
{{ 'customer.login.title' | t }}
{% endform %}
Sure, but I don’t want it to save the phone number in the notes, I want it to save it in the customer’s contact details.
{%- capture page_title -%}
{{ ‘customer.register.title’ | t }}
{%- endcapture -%}
{% render ‘page-title’, title: page_title %}
{{ 'customer.register.title' | t }}
{%- capture page_title -%}
{{ 'customer.register.title' | t }}
{%- endcapture -%}
{% render 'page-title', title: page_title %}
# {{ 'customer.register.title' | t }}
{% form 'create_customer' %}
{% render 'form__error', form: form %}
{{ 'customer.register.description' | t }}
{% assign show_terms = false %}
{% if settings.agree_text != blank and settings.show_agree_on_register %}
{% assign show_terms = true %}
{% endif %}
{{ 'customer.login.title' | t }}
{% endform %}
I share the code but it unpublishes it. How can I solve this?
I just need the code so I can give the correct addition code.
Will that be enough?
After referring to the instructions from the Shopify document, collecting phones on the registration page is impossible.
Hey @ifc-dogan ,
Unfortunately, you cannot add a phone field to the default registration page in Shopify Liquid. However, you can add custom fields to your store registration form using Third-party apps. I am adding a few apps using which you can customize your store’s registration form to add a Phone number field.
- Helium Customer Fields | Demo link: https://customr.myshopify.com/account/register
- Powerful Contact Form Builder | Demo Link: https://demo-powerful-contact-formbuilder.myshopify.com/pages/modern
- AAA Form Builder‑Contact Form | Demo link: https://formbuilder.myshopify.com/pages/custom-registration-form
- CP24 Form Builder, File Upload | Demo link: https://cp24-form-demo.myshopify.com/pages/custom-registration-form
Also, you can check out other apps on the Shopify app store using the link: Form Builder Apps
If my response helped you, please consider giving it a like (
) and marking it as an accepted solution if it resolved your issue. Your feedback helps other community members with similar questions.
Thank you!
Regards,
Abhishek from Swym
Hey @ifc-dogan !
It looks like a couple of people already mentioned this, but unfortunately it’s only possible to save the phone number into the customer note when editing the theme code directly. To save the phone number correctly to the customer account you would need an app such as our Helium Customer Fields app. We offer a 14 day free trial for all shops so you’re welcome to give it a shot risk free.