Registration Form In Woocommerce Stores And How To Add Them!
Get All Our 124 Premium Themes Worth $7316 At Just $99!

Registration Form In WooCommerce Stores And How To Add Them!

Every website you visit there’s a form where you have to fill personal information. This form is for subscription and further identification. Every single website in the world has a registration form. Through this form the company knows about the number of people who joined them. A registration form in Woocommerce stores plays an important role. It authenticates the relation between buyer and seller. If you are running a ecommerce website, then you have to have a registration form. This way you can know your customers better.

registration form woocommerce stores

Registration form is a field where you have to put personal information like name, address, email, contact number or even mention a social media ID. Some ecommerce websites can even ask you to put your card details to save them on the page. So next time when you shop there you will only have to add the CVV number. It makes transaction easy and builds trust.

Registration form in Woocommerce store is an ideal way of asking needed information from your visitors. If they choose to provide you this information, then they are interested in your business and products. They want hear more from you. This information will connect you on personal level.

What To Do Before Adding Registration Form In Woocommerce Store?

As said before, every single website on the internet has registration form. People are probably tired of putting their information on every website. But due to the system they are aware that its important. So they won’t hesitate to fill the form on your website.

But on your side, you need to give an authentic explanation why they should provide you the information. Here you can state the advantages they will get after registering. Also don’t be that nosey aunty asking for anything and everything. Only ask for legal information.

In the terms and conditions make them aware of what might happen with this information. Assure them that you will protect this data and won’t let it go into wrong hands.

It’s really important to optimize your registration form. You need to keep the form simple, easy to fill out and fast with functioning. It has to be flawless and should assure people that they can trust you.

How To Add Registration Form?

To add registration form in your website, you have to first enable it from Woocommerce backend settings. For this go to Woocommerce into settings and go to accounts. There you will see an option for Enable Registration. It will open a window where you will have to check the box beside ‘Enable customer registration’ on the ‘My Account’ page.

After this on the same window you will be able to control some features. For example, login reminder on checkout page, automatically generate username, customer password suggestions and more. It will make the user experience more optimized.

After the settings are done your registration form will display on your Woocommerce website. But this form is simple and has default fields. Now you have to customize it a bit. For this you need to insert following code in function.php file. It will add fields like username, contact number, address and mail ID.

Function wooc_extra_register_fields(){?>

<p class=”form-row form-row-wide”>

<label for= “reg_billing _phone”><?php_e(‘Phone’, ‘woocommerce’); ?></label>

<input type=”text” class=”input-text”name=”nilling_phone”id=”reg_billing_phone”

value=”<?php esc_attr_e($_POST[‘billing_phone’]); ?>”/>

</p>

<p class=”form-row form-row-first”>

<label for=”reg_billing_first_name”><?php_e(‘First name’, ‘woocommerce’); ?><span class=”required”>*</span></label>

<input type=”text” class=”input-text”name=”billing_first_name”

Id=”reg_billing_first_name”value=”<?php if (! Empty($_POST[‘billing_first_name’]))

esc_attr_e( $_POST[‘billing_first_name’] ); ?>” />

</p>

<p class=”form-row form-row-last”>

<label for=”reg_billing_last_name”><?php _e( ‘Last name’, ‘woocommerce’ ); ?><span class=”required”>*</span></label>

<input type=”text” class=”input-text” name=”billing_last_name” id=”reg_billing_last_name” value=”<?php if ( ! empty( $_POST[‘billing_last_name’] ) ) esc_attr_e( $_POST[‘billing_last_name’] ); ?>” />

</p>

<div class=”clear”></div>

<?php}

add_action( ‘woocommerce_register_form_start’, ‘wooc_extra_register_fields’ );

After adding this code, refresh your website. After that you will find all the fields in the registration form in Woocommerce store. You can add the section for billing address and home address separately by adding codes in the file. To validate the registration form you will need to add some codes in function.php file.

With this you will successfully add and validate your registration form in Woocommerce store!

You will get the best premium WordPress themes only at VWthemes. Check out our themes today and buy your favourite WordPress Themes.