Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
in the form field I believe I have located a complete entry to add field.
Original copy: from Dawn template:
<div class="field">
<input
type="text"
name="customer[last_name]"
id="RegisterForm-LastName"
{% if form.last_name %}value="{{ form.last_name }}"{% endif %}
autocomplete="family-name"
placeholder="{{ 'customer.register.last_name' | t }}"
>
<label for="RegisterForm-LastName">
{{ 'customer.register.last_name' | t }}
</label>
</div>
My Changes to this:
<div class="field">
<input
type="text"
name="customer[Business_name]"
id="RegisterForm-BusinessName"
{% if form.Customer_name %}value="{{ form.Customer_name }}"{% endif %}
autocomplete="Business-name"
placeholder="{{ 'customer.register.Business_name' | t }}"
>
<label for="RegisterForm-BusinessName">
{{ 'customer.register.Business_name' | t }}
</label>
</div
I am include the return snippet so you can see how it came out.
Please show me what I am doing incorrect so I can add this and I want to add a subscribe and unsubscribe check box so they have to choose one or the other for emails or sms.
Thank you
Ron
Solved! Go to the solution
This is an accepted solution.
Hi Psco,
You need to add an entry for Business_name in your default locale file .
File can found under Theme > Locales > en.default.json .
In this file try searching for "register" , it might look like this:
"register": {
"title": "Create account",
"first_name": "First name",
"last_name": "Last name",
"email": "Email",
"password": "Password",
"submit": "Create"
}
Here we'll need to add an entry for "Business_name" and it's text string.
Same for all other new fields like checkboxes etc.
This is an accepted solution.
Hi Psco,
You need to add an entry for Business_name in your default locale file .
File can found under Theme > Locales > en.default.json .
In this file try searching for "register" , it might look like this:
"register": {
"title": "Create account",
"first_name": "First name",
"last_name": "Last name",
"email": "Email",
"password": "Password",
"submit": "Create"
}
Here we'll need to add an entry for "Business_name" and it's text string.
Same for all other new fields like checkboxes etc.
Hi,
I have followed the steps here and successfully added additional fields to the customer registration form. However, when a customer registers, the additional information does not show on their customer account. Where can I see the additional fields they filled out on their account?
Hi,
I would think that is because you just added the field in the frontend and don't do anything with it in the backend, where the data is processed and stored. Have you figured out a simple way to do that?
@OliviaAnn1 - The only way to add new fields to the customer registration form that sync to the Shopify Admin > Customers page is via the Shopify Admin API. Said another way, an app is required. Either a custom app or a ready-made third-party app.
We built the Customer Fields app to help bridge this gap.
Otherwise, you'll need to follow Shopify's tutorial on saving custom fields to the customer note section.
If I want to add new field ,can you tell me which page I need to edit . en.default.json file ? but chatgpt said add new field to the customers/register.liquid page , but I couldn't find that page. Help me
By 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, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024