Posted on Leave a comment

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

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.

Get MainWP News and Notifications

Sebastian Moran on Github
Sebastian Moran
Sebastian Moran is a WordPress performance expert and technical liaison for MainWP.
Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.