Replies: 0
Hello,
By default the VAT field is adding to the checkout field.
Develop my own registration field on the frontend.
..
<p>
<label for="reg_billing_company">Bedrijfsnaam</label><br>
<input type="text" class="input-text" name="billing_company" id="reg_billing_company"
value="<?php if ( ! empty( $_POST['billing_company'] ) ) esc_attr_e( $_POST['billing_company'] ); ?>" />
</p>
..
..
if ( isset( $_POST['billing_phone'] ) ) {
// Phone input filed which is used in WooCommerce
update_user_meta( $customer_id, 'billing_phone', sanitize_text_field( $_POST['billing_phone'] ) );
}
..
How can i add the VAT field into my custom registration form?