NullHypothesis
NullHypothesis

Reputation: 4506

WooCommerce - Custom User Registration Fields

I was following this blog post https://www.themelocation.com/how-to-add-custom-fields-to-user-registration-form-in-woocommerce/ to learn about creating custom user fields in Woo (for registration).

The post above worked, and I was able to see new fields during registration, but I had two questions:

  1. How can I get these fields to appear when I'm editing a user in wp-admin? I didn't notice them rendering on the edit user page.
  2. Right now Woo (by default) lets you just register with an e-mail. I wanted to also use a first name and last name (my custom fields), but this is already a field on the users in WordPress, so I don't want to duplicate fields. Is there a way to somehow pull in/use/associate an existing field (such as name) during the Woo registration?

Thanks so much for any help/guidance you all can give me.

Upvotes: 0

Views: 1978

Answers (1)

Paul
Paul

Reputation: 380

1 You can use this plugin for display your custom fields in the admin view.

2 In your template HTML file, find the form, and use the default id & name tag : "Firstname" / "Lastname" ...ext

Upvotes: 1

Related Questions