How to Add Birthday Field to Checkout in Magento 2
As per Statista, 64.2 zettabytes of data is globally created every year, which is expected to reach 180 zettabytes by 2025.
Data never sleeps!
Whichever industry you are, the details about your target audience, and collecting customer data helps you improve mostly every aspect of your business.
For Magento 2 store owners, the default Magento 2 forms aid in this process. The flexible nature of the CMS allows modifying the default configuration to cater to the business needs.
And one such instance is the checkout page form. As a business owner, you may want to know the birth date of your customer in order to lure them for a birthday deal or unique offers for birthday month, or simply form a better customer relationship and engagement by sending birthday wishes.
Overcoming the limitation of the default checkout form, here’s the solution to add birthday field to checkout in Magento 2.
Method to add birthday field to checkout in Magento 2:
- Login to admin panel
- Navigate to Stores > Configuration
- Select Customer Configuration under Customers
- Expand Name and Address Options
- Change the value of the field “Date of Birth” to “required”
- Save the configuration
That’s it to add DOB field to the checkout page in Magento 2.
Please use the Comments section below to mention any doubts, if any, about the topic or the solution.
I’m here to help you out.
Also, do not forget to share the post with fellow Magento developers via social media.
Thank you.
Related Topics:
- How to Add Custom Template on Magento 2 Checkout Page
- How to Add Custom Field in Address Form in Magento 2
Sanjay Jethva
Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe.
His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.
2 Comments
Magento 2.3 how to display checkout page date of birth . please send full step .
Hey Abhijit,
Same configuration are also in Magento 2.3 version and
in clean Magento it is working well so can you please try this?