Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I added custom code to include first name, last name, and phone number along with the standard email field on my password page.
First and Last name are passing through to customer info in my admin panel, but phone number won't go through. I've tried a couple little tweaks but it never works.
I didn't see any relevant replies or resolutions to this query so I'm hoping someone has an answer to this without it being a "but my app" answer.
Solved! Go to the solution
This is an accepted solution.
Hey @jairet! Unfortunately it's not currently possible to set a customer phone number directly through the front-end by adding a form input.
One option for this would be to store the phone number into the customer note. You can check out this reference guide for some info: https://shopify.dev/docs/storefronts/themes/customer-engagement/additional-customer-information
The other option would be using an app such as our Helium Customer Fields app to collect any information you want and have it stored directly into the native Shopify fields such as for contact phone number, or into customer metafields for any custom data you want to collect, for example birthday or gender.
Have you tried using another number to test?
You can as well leave it for a day or two, then login on your browser, then give it a shot again.
Yeah, I tested with multiple different phone numbers just using the correct number of digits. I also tested on mobile with a different number and that didn't work either.
Oh I see. Adding a phone to your account isn't compulsory on Shopify. The major is your email and strong password.
I'll just advice you leave that for now. In as much you have a strong password with email, then your Shopify admin account is safe. You can always add your number some other time.
I hope you understand.
Btw, have you listed any product to your Shopify store yet?
I think you misunderstood. I am not referring to a login page. I am referring to the my store's password page – the page shown instead of taking visitors to the store. I enabled "site password" in Shopify because I'm not ready for customers to access the store.
I haven't launched products yet, they are still being manufactured. In the meantime, I am collecting customer info via the password page, which comes with a standard email capture. I added first name, last name, and phone but phone isn't passing through to the costomer info in admin panel.
Does that make sense?
First and last name pass through so I am not sure what it wrong, whether it's the code or just Shopify won't allow it.
Do you have any insight about this?
This is an accepted solution.
Hey @jairet! Unfortunately it's not currently possible to set a customer phone number directly through the front-end by adding a form input.
One option for this would be to store the phone number into the customer note. You can check out this reference guide for some info: https://shopify.dev/docs/storefronts/themes/customer-engagement/additional-customer-information
The other option would be using an app such as our Helium Customer Fields app to collect any information you want and have it stored directly into the native Shopify fields such as for contact phone number, or into customer metafields for any custom data you want to collect, for example birthday or gender.
Touché! That's actually the app I downloaded but was trying to find a free solution. I knew I coded it right so thanks for closing the loop on why this wasn't working.
We 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, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024