• 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 1 replies (of 1 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi hurab,

    I’m not sure what this has to do with our plugin. Our plugin just creates an equivalent order when an order is placed via WooCommerce. We have no control over the WooCommerce registration form or checkout process.

Viewing 1 replies (of 1 total)
  • The topic ‘woocommerce username label change showing error in checkout’ is closed to new replies.