Change the fill in items on custom registration page

This topic has 4 replies, 3 voices, and was last updated 8 years, 7 months ago ago by Jack Richardson

  • Avatar: yichu
    yichu
    Participant
    August 31, 2015 at 17:05

    I like legenda theme so much! just encounter some problem I can’t deal with.

    I select “Automatically generate username from customer email” under woocommerce Registration Options. But don’t know how to change this part on custom registration page to match my need.

    I’d like users to enter email(used as username)/password/re-enter password/capchta

    Thank you in advance for your help.

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    August 31, 2015 at 17:16

    Hello,

    You can edit custom registration form in \wp-content\themes\legenda\contacts.php file.

    Regards,
    Robert Hall

    Avatar: yichu
    yichu
    Participant
    September 1, 2015 at 16:58

    Hi Robert,
    I didn’t get it. I don’t want to change the contact page. It’s the Custom Registration Page(et-registration.php)of legenda that’s not matching the woocommerce setting.

    Could you please tell me a quick hint how to remove the username part of the registration.
    Cause I’m using email as usernames on my site.

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 1, 2015 at 17:11

    Hello,

    You need edit the file wp-content/themes/legenda/et-registration.php and delete the code in line 53

    <p class="form-row 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" value="" />
    </p>

    Also edit the file wp-content/themes/legenda/framework/theme-functions.php and remove the code in line 1193:

    $username = esc_sql($_REQUEST['username']);
    if(empty($username)) {
    $return['status'] = 'error';
    $return['msg'] = __( "User name should not be empty.", ETHEME_DOMAIN );
    echo json_encode($return);
    die();
    }

    Best regards,
    Jack Richardson.

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

You must be logged in to reply to this topic.Log in/Sign up

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