Is it possible to remove the username field and allow customers to register with email and password only?
I don’t think a username is necessary for an ecommerce store.
Thanks for your time.
This topic has 4 replies, 3 voices, and was last updated 11 years ago ago by Eva Kemp
Is it possible to remove the username field and allow customers to register with email and password only?
I don’t think a username is necessary for an ecommerce store.
Thanks for your time.
Hello,
You can remove this code in \themes\royal\framework\theme-functions.php file on line 1301-1304
<p class="form-row">
<label class=""><?php _e( "Enter your username", ETHEME_DOMAIN ) ?> <span class="required">*</span></label>
<input type="text" name="username" class="text input-text" />
</p>
Don’t forget to make backup this file. Also recommended do all changes in Child Theme.
About Child Theme you can read in out documentation:
https://www.8theme.com/demo/docs/royal/index.html#!/2_child_theme
Regards,
Robert Hall.
Hi, thanks for your reply but I’m not sure how to remove it through a child theme. I know how to use child themes for adding CSS and adding functions, but not removing them.
Anyways, when I tried backing up the theme-functions.php file and deleting the code directly from the parent, it worked. The username field was removed, however, I got this error when trying to register without username:
“Username already exists. Please try another one.”
Please advise, thanks.
Hello,
Sorry, but there is such option by default.
You may try to use this solution:
http://stackoverflow.com/questions/25118393/how-to-use-email-as-username-in-woocommerce
Regards,
Eva Kemp.
The issue related to '‘allow customers to register with email only, not username’' has been successfully resolved, and the topic is now closed for further responses