title: Adding a checkbox in WooCommerce registration form
body: <p>I want to add an custom checkbox for agreeing to terms and condition on a WooCommerce registration form. I did that, but how do I make that checkbox appear between the Password and Register Buttons. Here is a link to my Registration form: <a href="https://otpeople.com/my-account/" rel="nofollow noreferrer">https://otpeople.com/my-account/</a> </p>
  
  <p>It's showing there, but I want it on bottom of all fields, and a link to my terms and condition page.</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;?php
  
     function wooc_extra_register_fields() {
  
   ?&gt;
  
      &lt;p class="form-row form-row-wide"&gt;
  
       &lt;label for="reg_billing_first_name"&gt;&lt;?php _e( 'Full Name', 'woocommerce' ); ?&gt;&lt;span class="required"&gt;*&lt;/span&gt;&lt;/label&gt;
  
       &lt;input type="text" required class="input-text" name="billing_first_name" id="reg_billing_first_name" value="&lt;?php if ( ! empty( $_POST['billing_first_name'] ) ) esc_attr_e( $_POST['billing_first_name'] ); ?&gt;" /&gt;
  
     &lt;/p&gt;
  
       &lt;div class="clear"&gt;&lt;/div&gt;
  
  
  
     &lt;p class="form-row form-row-wide"&gt;
  
       &lt;label for="reg_billing_phone"&gt;&lt;?php _e( 'Mobile Number', 'woocommerce' ); ?&gt;&lt;span class="required"&gt;*&lt;/span&gt;&lt;/label&gt;
  
       &lt;input type="Number" required class="input-text" name="billing_phone" id="reg_billing_phone" value="&lt;?php if ( ! empty( $_POST['billing_phone'] ) ) esc_attr_e( $_POST['billing_phone'] ); ?&gt;" /&gt;
  
     &lt;/p&gt;
  
  
  
     &lt;p class="form-row form-row-wide"&gt;
  
       &lt;label for="reg_num"&gt;&lt;?php _e( 'MCI Registration Number', 'woocommerce' ); ?&gt;&lt;span class="required"&gt;*&lt;/span&gt;&lt;/label&gt;
  
       &lt;input type="text"  required class="input-text" name="reg_num" id="reg_num" value="&lt;?php if ( ! empty( $_POST['reg_num'] ) ) esc_attr_e( $_POST['reg_num'] ); ?&gt;" /&gt;
  
     &lt;/p&gt;
  
     &lt;p class="form-row form-row-wide"&gt;
  
       &lt;label for="Year_of_reg"&gt;&lt;?php _e( 'MCI Year of Registration', 'woocommerce' ); ?&gt;&lt;span class="required"&gt;*&lt;/span&gt;&lt;/label&gt;
  
       &lt;input type="Number" required class="input-text" name="Year_of_reg" id="Year_of_reg" value="&lt;?php if ( ! empty( $_POST['Year_of_reg'] ) ) esc_attr_e( $_POST['Year_of_reg'] ); ?&gt;" /&gt;
  
     &lt;/p&gt;
  
  
     &lt;p class="form-row form-row-wide"&gt;
  
       &lt;label for="qualification"&gt;&lt;?php _e( 'Qualification', 'woocommerce' ); ?&gt;&lt;span class="required"&gt;*&lt;/span&gt;&lt;/label&gt;
  
       &lt;input type="text" required class="input-text" name="qualification" id="qualification" value="&lt;?php if ( ! empty( $_POST['qualification'] ) ) esc_attr_e( $_POST['qualification'] ); ?&gt;" /&gt;
  
     &lt;/p&gt;
        &lt;label for="reg_billing_check_box"&gt;&lt;?php _e( 'Agree to Terms &amp; Condition', 'woocommerce' ); ?&gt;&lt;span class="required"&gt;*&lt;/span&gt;&lt;/label&gt;
  
  
      &lt;input type="checkbox" class="input-text" name="billink_checkbox" id="reg_billing_first_name" value="&amp;lt;?php if ( ! empty( $_POST['billing_checkbox'] ) ) esc_attr_e( $_POST['billing_checkbox'] ); ?&amp;gt;"/&gt;
  </code></pre>