Adding A Registration Form To WooCommerce Stores


Although they differ from each other, all websites, especially commercial websites, use registration forms. These websites use these forms to properly identify their customers. Many online Ecommerce stores, particularly use WooCommerce registration form to gather data of their current and potential customers.

These forms play an important role in their business operations. In this regard, there is a need for user friendly registration forms for WooCommerce stores whether they are offering consumer items or home services or are catering to hotel guests or tourists. Potential customers can use this form to register their names and provide personal information. This is required for them to receive the goods or services from WooCommerce stores.

If you are one among the many stores online, you need to know the process of adding a registration form. Your potential customers need to understand this form easily so they can type in their personal information without any problem. The form should also be able to function flawlessly. In this way you will be able to avoid lots of questions stemming from a registration form that is difficult to understand and therefore hard to fill up. You may like to check WooCommerce theme development tutorial.

How You Can Add A WooCommerce Registration Form

The first thing you need to do is to enable the form using the backend settings of WooCommerce. The path to follow is WooCommerce, then Settings, then Accounts, then Enable Registration. A window will pop-out. In this window, you should check the box which says “Enable customer registration” which is located on the “My account” page.

In this page, you can also manage other settings such as the automatic generation of customer password or username, the display of login reminder for returning customers in the check-out page, and so forth. This will optimize the registration process of your website visitors. After you have finished organizing your settings, the  WooCommerce custom registration form will be displayed on your website’s front end. If you see the form displayed, you have successfully added a registration form to your WooCommerce store.

But as you can see, the registration form is very simple. There are many things that you still need to add to the form to make it look like an authentic WooCommerce registration form. Your next task is to add certain fields to the already enabled registration form. Separate fields for first name, last name, email, password, phone numbers and so forth have to be added to the form. To be able to add these fields, you need to insert the following code after the functions.php file.

How to add custom field in WooCommerce Registration Form

Once you are done, the page will be refreshed. After the page refresh, you will see additional custom fields in WordPress WooCommerce registration form.

If you want to relate a billing address to the registration form, add the word “billing” before the name of the field. Here are some examples of the form fields that are commonly used:

  • billing_city, billing_postcode, billing_country, billing_state, billing_email, billing_phone
  • billing_first_name, billing_last_name, billing_company, billing_address_1, billing_address_2

You also need to validate the information in these fields using another code that you need to add to functions.php file. The code lines for data validation that you need to use are:

Once you are finished doing this, your database is ready to be used because the values have been collected, validated and added successfully. You now have a full functioning registration form in your WooCommerce store.

Visited 607 times, 6 Visits today

Roshan Bajaj information

Roshan Bajaj is a lazy person who loves sleeping but his passion, love, and persistence for his Team, Mentors, WordPress and Digital Marketing, keeps him at work and he finds peace in it. His hobbies include finding the truth and being happy accepting it.

About James Gorski information

In addition to being the editor at designrfix and writing about tech, web and graphic design among other subjects, I love “unplug” and be outdoors hiking and enjoying nature. If you can’t reach me, it’s probably because where I am at doesn’t have cell phone reception.

Related Posts