Development discussions around Shopify APIs
Hi,
When a customer registers a new account on my shop, I would like to collect their phone number in addition to their name and email address. Any idea if this is possible? Perhaps it is possible to add metafields to the form? I know that products can have properties set before adding them to the cart, but is there anything similar for customers?
Thanks 🙂
Hello David,
Keegan here from the Shopify Guru team.
Great question, and totally possible! There is a document linked below that will do exactly that, add fields (more information) to your customer signup page.
Although it will not create any new fields within the admin area of Shopify (not possible) it will place all this information in the notes of your customers account.
Thanks for your post 🙂
Keegan | Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Can you provide relevant codes
for example:
Add a field in the registration page is the phone number
Thank you so much Keegan, this is perfect! 🙂
How about just adding fields that are already part of the shopify backend - like address?
I would like to ask for a default address - may be just the zip code and phone number - is that possible? Asking only for a phone number? Possible?
I know I can do customer[accepts_marketing] -- but customer[addresses][0][phone] does not seem to work.
Please advise.
RELATED POST:
https://ecommerce.shopify.com/c/ecommerce-design/t/collect-address-on-registration-368214
Shopify has not answered this question? This is a very common use case.
I am assuming Shopify is protecting App vendors here. They will have a market for people that want point and click. And if not, let the market decide if it is a good app. If its solving a real problem. If its in demand. And if none, of those - unfortunately, thats unlucky. Perhaps you just reinvented the wheel - or not.
unless bugs, we've tried:
customer[default_address][..]
customer[addresses_attributes][0][..]
@MWeb_Solutions kind of hit the nail on the head here.
Shopify has not answered this question? This is a very common use case.
- Yes, there is an app.
- No, we dont want to use it.
- Yes, we are Shopify Experts
- Yes, this is a simple use case
- Yes, this is a very common question
- It seems no-one will answer this directly
This post is the best I've seen anywhere to explain why an app is the best way to handle saving data to a customer's account.
Is it a simple use case? Yes. Should Shopify offer better support for this? Perhaps.
But that's why we built the Customer Fields app-- so that merchants with no coding experience can request additional info from customers in account registration. We also built Customer Fields so developers can build custom forms and solve merchants' problems more quickly (and therefore inexpensively).
User | RANK |
---|---|
10 | |
4 | |
3 | |
3 | |
3 |
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023