However, is there a suggested fix to make them 'optional'? After all- it's possible to register someone with just an email address in the register form, correct?
-> It is possible to make the first and last name fields optional with a snippet
-> For email, username, password, I do not have a way to make them optional. However, we can hide them + set SalesKing to auto-generate random values. That way customers would be created with a random username and email such as Lk2K9e8dHe9z7m
For all that, you can add the following PHP code snippet to your site:
Hello,
When agents use the 'add customer' form, the following fields are required:
First Name, Last Name, User Name, Email, Password.
I've found your article on removing fields - https://woocommerce-b2b-plugin.com/docs/how-to-add-or-remove-fields-from-new-customer-form/
However, is there a suggested fix to make them 'optional'? After all- it's possible to register someone with just an email address in the register form, correct?
Hello Marissa,
-> It is possible to make the first and last name fields optional with a snippet
-> For email, username, password, I do not have a way to make them optional. However, we can hide them + set SalesKing to auto-generate random values. That way customers would be created with a random username and email such as Lk2K9e8dHe9z7m
For all that, you can add the following PHP code snippet to your site:
It makes first/last name optional + it removes user/email/password fields.
Kind regards,
Stefan
Wonderful solution. Thank you for your help.