Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello Everyone,
Im trying to set up in checkout settings, telephone number as required field while placing the order. All information I found are saying about mark the option in Settings/Checkout/Customer information/Shipping address phone number - required.
All would be good if not the fact that this option only works for orders with delivery meanwhile all orders with pick up doesn't have this option with telefone as required and it makes many time complicated situations. Do you know how to solve this problem? I couldn't find any on any group but I'll be happy if any of you know how to solve it, met with similar issue or there is an already existing conversation about this issue.
As reference you could see screen shots of my setting and how they appear on page:
Solved! Go to the solution
This is an accepted solution.
I think there is no easy way to force the customer to enter their phone in such case through native settings or theme liquid and I can only think of two potential partial solutions:
1. Check the Flow app if you can find any Action that may serve you in such case. Unfortunately there doesn't seem to be any Flow trigger available for Checkout but there is for order ('Order created'); you may like to tag and/or send an internal email (to staff) when such order without a phone number is made. I guess such solution doesn't interest you in your case since it doesn't give any call for action to the customer and it's more for staff.
2. You may make use of editing the phone field placeholder and/or phone field label to indicate to the customer they need to enter their phone number.
You can do that in Edit Default Theme Content > Checkout & system > scroll down to 'Checkout contact' and look for the phone related fields and edit their label/placeholder as you wish. You would need to edit the 'Optional phone label' so instead of showing 'Optional' as in your screenshot it shows 'REQUIRED' (you can add any more text to stress its importance) - However, again, this won't 'force' them to enter it and it just tell them to do it (under their 'Billing address' data).
To access the edit Default Theme Content : on the Themes admin page, click on the three dots (...) next to the 'Customize' button and click on 'edit default theme content'.
I hope this helps you a bit and I'd update my answer if I could find/think of any better solution.
This is an accepted solution.
I think there is no easy way to force the customer to enter their phone in such case through native settings or theme liquid and I can only think of two potential partial solutions:
1. Check the Flow app if you can find any Action that may serve you in such case. Unfortunately there doesn't seem to be any Flow trigger available for Checkout but there is for order ('Order created'); you may like to tag and/or send an internal email (to staff) when such order without a phone number is made. I guess such solution doesn't interest you in your case since it doesn't give any call for action to the customer and it's more for staff.
2. You may make use of editing the phone field placeholder and/or phone field label to indicate to the customer they need to enter their phone number.
You can do that in Edit Default Theme Content > Checkout & system > scroll down to 'Checkout contact' and look for the phone related fields and edit their label/placeholder as you wish. You would need to edit the 'Optional phone label' so instead of showing 'Optional' as in your screenshot it shows 'REQUIRED' (you can add any more text to stress its importance) - However, again, this won't 'force' them to enter it and it just tell them to do it (under their 'Billing address' data).
To access the edit Default Theme Content : on the Themes admin page, click on the three dots (...) next to the 'Customize' button and click on 'edit default theme content'.
I hope this helps you a bit and I'd update my answer if I could find/think of any better solution.
Thank you a lot! As you mention the first solution I already tried but it wasn't so efficient. The second option for now is ok and further more it works.
Happy to be of help 😊
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By 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, 2024