The default account registration form in WooCommerce is fairly limited; you simply enter an email address and a password. In some ways this is great, as there’s little friction for your customers to create an account, but there are a number of cases where you may want to add some additional fields. For example, you could add some fields to populate the rest of their profile, like their website address, or social media information. Or perhaps you want to add some custom fields relevant only to your specific WooCommerce store.
In this tutorial I’m going to show you how to add a number of different field types to the WooCommerce account registration form, and then save this information to the customer’s profile. As a bonus, I will also show you how to add these fields when your customers sign up for an account at checkout, and to their account page once logged in.
It might be a long one, so I’ll index the important sections:
Add Additional User Account Fields to WooCommerce
Where do I add this code?
The code from this tutorial should be added to your WooCommerce website as feature plugin. You can download an example plugin below or at the end of this post. Simply
Source: https://managewp.org/articles/16803/the-ultimate-guide-to-adding-custom-woocommerce-user-account-fields
source https://williechiu40.wordpress.com/2017/12/13/the-ultimate-guide-to-adding-custom-woocommerce-user-account-fields/
No comments:
Post a Comment