Allow customers to register with email only, not username

This topic has 4 replies, 3 voices, and was last updated 11 years ago ago by Eva Kemp

  • Avatar: antcuc
    antcuc
    Participant
    December 12, 2014 at 10:56

    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.

    3 Answers
    Avatar: Robert Hall
    Robert Hall
    Participant
    December 12, 2014 at 11:18

    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.

    Avatar: antcuc
    antcuc
    Participant
    December 15, 2014 at 08:56

    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.

    Avatar: Eva
    Eva Kemp
    Participant
    December 15, 2014 at 15:46

    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.

  • Viewing 4 results - 1 through 4 (of 4 total)

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

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.