If you wish to get additional information from the customer in the registration form, you can easily do it with ACF for WooCommerce. No coding is required. It is achieved with the help of Advanced Custom Field free or PRO version of the plugin. When a store owner is looking for advanced features then advanced custom fields for woocommerce is the best thing you can think of.
An admin can easily create custom fields (ACF) for customers while he is creating his account in the register form. While creating a custom field using Advance Custom Field, the admin needs to select “Customer Edits Allowed” so that the customer can use that custom field.
If you wish the customer to enter that value in the registration form then select Customer Register Form. If you do not select it, the custom field can be added from the edit account page, once the user is logged in. There will be no change in the customer registration form.
The admin needs to select User Role equal to Customer in the custom field location rules to make this setting work. Please check the below screenshot for clarity.
That is not all. What to do if the customer wants to change that value later on. That is also possible with the plugin. After customers log in, they can update the custom fields from the edit account page.
The supported field types of ACF are text, textarea, number, URL, select, checkbox, radio, file, and email.
Now, the field is created for a customer. You can use the below ACF functions to display the value:
the_field( ‘field_name’, ‘user_1’ ); // where 1 indicates user ID
echo get_field( ‘field_name’, ‘user_1’ ); // where 1 indicates user ID
ACF For WooCommerce is also compatible with the multivendor marketplace plugin Dokan and ACF For Dokan PRO.
ACF For WooCommerce is a plugin that allows store owners to add custom fields to the WooCommerce store, including registration and account. It uses the Advanced Custom Fields (ACF) interface for easy visual setup.
You can add all ACF-supported field types. These include text, textarea, number, URL, select, checkbox, radio, file, and email fields.
Yes, you can add custom fields to the WooCommerce registration form. Simply select “Customer Edits Allowed” and “Customer Register Form”. while creating your ACF field and set the location rules to User Role = Customer. Fields can also be shown in the edit account section after login.
No coding is required to create fields or show them in forms. For displaying custom field values on the front end, you may use template tags like the_field(‘field_name’,’user_{user_ID}’) or integrate with builders like Elementor/Divi for visual display of field data.
Yes, customers can update custom fields anytime from the WooCommerce “Edit Account” page, provided “Customer Edits Allowed” was selected during field creation.
Yes. ACF For WooCommerce works with both the free and PRO versions of the Advanced Custom Fields plugin, though advanced field types require ACF PRO.
Yes, you can export/import field groups (structure) using ACF Tools, and export/import data using plugins like WP All Export/Import PRO with the ACF add-on.
Yes, it works with all compliant WooCommerce themes. Custom themes may require minor template adjustments for field display on the front end.
Also, refer to this blog How to add a custom registration form field in WooCommerce.