title: Remove username field registration form - Woocommerce
body: <p>How can I remove the username field in the registration form in woocommerce? </p>
  
  <p>I tried to remove some line from the <strong>woocommerce/myaccount/login-form.php</strong> </p>
  
  <pre><code>&lt;?php if ('no' === get_option( 'woocommerce_registration_generate_username' ) ) : ?&gt;
  
  &lt;p class="form-row form-row-wide"&gt;
  &lt;input type="text" class="customer_login_input" name="username" id="reg_username" placeholder="User name" value="&lt;?php if ( ! empty( $_POST['username'] ) ) echo esc_attr( $_POST['username'] ); ?&gt;" /&gt;
  &lt;/p&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>After that the field doesnt appear in the page, but when I enter the e-mail and the password to register some new account I get the following error: <strong>Error: Please enter a valid account ID.</strong></p>
  
  <p>I guess, delete this line brok somethings in the registration form..</p>
  
  <p>Any help would be appreciated</p>