Magento Tutorials

How to Enable Phone Number Validation on the Customer Registration Page Magento 2?

Customer data is very important for online store owners. It helps to increase conversions, provide excellent customer service, know their expectations and help in communicating with the customers.

Customer data is asked for during registration and checkout. Magento 2 store owners can obtain customer telephone for easy communication if there is any problem with the payment or shipping. Also, for announcing promotional campaigns, a customer’s contact number is required.

So to collect customer contact numbers, you can add the phone number field in the customer registration form in Magento 2. Allow customers to use the mobile app and add their mobile number hassle-free by selecting the country code from the dropdown menu using the International Telephone Input Plugin for Magento 2.

Let’s see how to Add Telephone Validation on Customer Registration Page in Magento 2

Steps to Add Telephone Validation on Customer Registration Page in Magento 2:

  • From the Magento Admin Panel, move to Stores -> Settings -> Configuration.
  • From the left pane, expand CUSTOMERS and select the Customer Configuration option.
  • Enlarge the Name and Address Options section from the right panel.

  • Next move to the Show Telephone field under Name and Address Options.
  • Uncheck the Use system value checkbox to activate the field.
  • From the dropdown list set the Telephone field as Optional or Required based on your needs.

  • When you are done, click Save Config.

Final Words:

This way Telephone field is successfully added to the registration and checkout page of your Magento 2 store. You can also Add an Input Mask in Checkout Telephone Field.

That’s it for today! Stay tuned with us for more Magento 2 Tutorials.

Happy Reading!

Click to rate this post!
[Total: 5 Average: 4.2]
Gaurav Jain

Gaurav Jain is Co-Founder and Adobe Certified Expert-Magento Commerce Business Practitioner. Being Computer Engineer?‍? and possessing Extensive Marketing skills he handles all kinds of customer Queries and his Happy? & Helping? Nature makes customer's day Delightful. When he isn’t working, you’ll find Gaurav Reading on Books? or Traveling?. Also, he is Speaker at Magento Meetups.

Recent Posts

Improving Error Handling and Transition Management in Remix with useRouteError and useViewTransitionState

In modern web development, seamless navigation and state management are crucial for delivering a smooth…

6 days ago

Magento Open Source 2.4.8-Beta Release Notes

Magento Open Source 2.4.8 beta version released on October  8, 2024. The latest release of…

1 week ago

How to Create Catalog Price Rule in Magento 2 Programmatically?

Hello Magento Friends, Creating catalog price rules programmatically in Magento 2 can be a valuable…

1 week ago

Top 10 Tips to Hire Shopify Developers

As the world of eCommerce continues to thrive, Shopify has become one of the most…

2 weeks ago

Managing Browser Events and Navigation in Shopify Remix: useBeforeUnload, useHref, and useLocation Hooks

Shopify Remix is an innovative framework that provides a streamlined experience for building fast, dynamic,…

2 weeks ago

Ultimate Guide to Hiring a Top Shopify Development Agency

Building a successful eCommerce store requires expertise, and for many businesses, Shopify has become the…

2 weeks ago