This topic has 4 replies, 3 voices, and was last updated 8 years, 7 months ago ago by Jack Richardson
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.
Hello,
You can edit custom registration form in \wp-content\themes\legenda\contacts.php file.
Regards,
Robert Hall
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.
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.
You must be logged in to reply to this topic.Log in/Sign up