How to easily add ACF fields to the Registration Form in WooCommerce

Published on July 22, 2019 by Sebastian Moran in MainWP Blog under Tips & Tricks
Heads up: This page may include affiliate links. Read the full disclaimer.

WooCommerce is a well-used e-commerce plugin for WordPress. You may find yourself in the position of needing to easily add additional fields to the registration form on My Account on one of your child sites.

Luckily, there is an easy way to add additional fields using Advanced Custom Fields. First, you will need to install and activate the ACF plugin on your child site.

Next, you will need to create a group of the fields you want to display on the WooCommerce registration form. Look for the admin menu called as follows;

Field Groups

Then click on Add New. You can follow the example field groups, which in this example would be text field for location, an international phone number field, and a terms field that needs to be selected. The example field group can be imported in using Tools in Advance Custom FIelds.

Now that you have created your field group and fields, select that field group to be displayed in WooCommerce. With the ACF WooCommerce Account FIelds plugin installed and activated, those settings can be found from;

Accounts & Privacy

With the newly created field group selected, when you log out of the site, go to My Account with registration enabled, and you will see the additional fields displayed.

This will give you an easy way to easily add any additional fields using ACF on your WooCommerce registration form on any child sites.

2 comments

  • Hey Sebastian,
    I follow your steps and I added all the friends in the registration form, But, when I try to register as a user through another browser, it didn’t register me! any solution?

  • James

    That’s great tutorial but if you can guide how to add fields in registration form manually? The fields are not adding in the registration form using a plugin. I am trying to add it manually using a code that I have seen here in a complete guide https://wpitech.com/add-woocommerce-registration-form-fields/. Is there any alternative to do this? It would be really helpful if you could help me to add fields in the registration form.

    function Woo_register_fields() {?>

    *
    <input type="text" class="input-text" name="registration_name" value="” />

    <?php
    }
    add_action( 'woocommerce_register_form_start', 'Wooregister_fields' );

Comments are closed.

Share

Manage Unlimited WordPress Sites from One Dashboard!

  • Privacy-first, Open Source, Self-hosted
  • Easy Client Management
  • 15+ & 30 + Premium Add-ons
  • Bulk Plugins & Themes Management
Get Pro Now

Categories

Recent Posts

Search MainWP.com

[searchwp_form id="1"]