Whether to add custom checkout fields to the email of woocommerce store? Woodcommerce is a powerful e-commerce plug-in, which can be customized and is very flexible. In this post, you will see how to dynamically customize other fields, such as deleting invoice receiving address, adding \/ editing custom checkout fields, and saving these custom fields to the database. We’ll also show you how to add these custom fields to order email. The first step in removing a note from a custom checkout field is the function of the topic. Add a custom PHP snippet to the PHP file and remove the address field from the request screen.
Function woocommerce_remove_advancement_information_checkout ($fields){
unset( $fields[\
unset( $fields[\
Return the $field;
}
add_filter( ‘woocommerce_billing_fields’, ‘woocommerce_remove_additional_information_checkout’ ); The results are as follows: 
The following code snippet adds custom fields to the checkout page, stores the data in the order unit data, and displays the order unit data in order management. I received some questions about adding multiple fields. Add code snippets and two fields to help solve the problem. The code snippet for adding custom checkout fields to e-mail woocommerce is a feature of the subject. Must be added to the PHP file. Subtopics are recommended to avoid losing changes during the upgrade. 1. Woocommerce custom payment field adding function. Add the following code to the PHP file to add a custom woocommerce checkout field.
Function njengah_custom_checkout_fields ($fields){
$fields [‘njengah_extra_fields’] = array(
\
\
\
\
),
\
\
\
\
Drop down field (\
)
);
Return the $field;
}
add_filter( ‘woocommerce_checkout_fields’, ‘njengah_custom_checkout_fields’ );
Function njengah_extra_checkout_fields (){
$checkout = WC()->checkout(); ?>

checkout_fields[‘njengah_extra_fields’] as $key => $field ) : ?>
get_value( $key ) ); ?>
2. Data storage function of custom checkout woommerce field. Add the following code to the PHP file to save the data in the custom checkout woommerce field: Function njengah_save_extra_checkout_fields ($order_id, $post){
\/\/If you use different field types, don’t forget the appropriate sterilization.
if( isset( $posted[‘njengah_text_field’] ) ) {
update_post_meta( $order_id, ‘_njengah_text_field’, Sanitary_
text_field( $posted[‘njengah_text_field’] ) );
}
If (isset ($post [\
update_post_meta( $order_id, ‘_njengah_dropdown’, $posted[‘njengah_dropdown’] );
}
}
add_action( ‘woocommerce_checkout_update_order_meta’, ‘njengah_save_extra_checkout_fields’, 10, 2 ); 3. Display the data in the woocommerce custom field to the user. Add the following code to the PHP file to display the data in the woocommerce custom field to the user:
Function njengah_display_order_data ($order_id) {? >
<?php }
add_action( 'woocommerce_checkout_after_customer_details' ,'njengah_extra_checkout_fields' ); 결과는 다음과 같습니다. 
4. Displays the woocommerce administrator custom order field. This code snippet is used as delivery and billing address data, and displays the input when the user clicks the small pencil icon. Function njengah_display_order_data_in_admin ($order) {? >