How to get value from customer's Phone field in Shopify?
I want to create a field for phone in shopify registration form. So that i have written the following code at register.liquid:
<label for="phone" class="label--hidden">Phone Number</label> <input type="text" value="" name="customer[phone]" id="phone" class="phone" placeholder="Phone"/>
But when i fetched all the customer data by shopify api , phone field is null for all the customers. I checked the documentation and didn't find helpful anything about it. Thanks.
<input type="text" name="customer[note][Phone]" placeholder="Phone"/>
There's no way to save it directly into the customer's
phone field using the registration form.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.