• Resolved hurab

    (@hurab)


    Hi i have just changed the username label in woocoomerce registration form and login form but now unable to place order during checkout could you please guide what is the error

    add_filter( ‘gettext’, ‘change_registration_usename_label’, 10, 3 );
    function change_registration_usename_label( $translated, $text, $domain ) {
    if( is_account_page() && ! is_wc_endpoint_url() ) {
    if( $text === ‘Username’ ) {
    $translated = __( ‘Account number’, $domain );
    } elseif( $text === ‘Username or email address’ ) {
    $translated = __( ‘Account number or email address’, $domain );
    }
    }

    return $translated;
    }

Viewing 2 replies - 16 through 17 (of 17 total)
  • Stef

    (@serafinnyc)

    Ok. So I’d suggest creating a child theme, use that and from there you can customize your site easier. Without having to write too many hooks.

    You’ll create a folder called woocommerce in the child and paste only the WC templates you want to customize. You will have to follow the folder structure exactly the same as the plugin.

    The you can simply edit the labels on login page.

    If you don’t know how to look at code you may need to find someone to help you.

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘userame label changed in woocommerce showing errors during checkout page’ is closed to new replies.