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

Magento 2: Add Quantity Increment and Decrement on Category Page

Hello Magento Friends, In this blog, we will discuss about adding quantity increment and decrement…

5 hours ago

How to Integrate ChatGPT with Laravel Application?

In this guide, we'll explore how to integrate ChatGPT, an AI-powered chatbot, with a Laravel…

3 days ago

What are Net Sales? How to Calculate Your Net Sales?

In the world of business, understanding financial metrics is crucial for making informed decisions and…

5 days ago

Magento 2 Extensions Digest April 2024 (New Release & Updates)

Welcome to the MageComp Monthly Digest, where we bring you the latest updates, releases, and…

5 days ago

The ABCs of Geofencing: Definition, Features and Uses

In this era, businesses are always on the lookout for ways to engage with their…

6 days ago

How to Delete Product Variant in a Shopify Remix App using GraphQL Mutations?

Managing a Shopify store efficiently involves keeping your product catalog organized. This includes removing outdated…

1 week ago