You can do it by hooks and filters but why bother if you can do it by Flexible Checkout Fields for WooCommerce.
There's lot of field types such as checkbox field, date field or picker field.
Read on to see how easy it's to edit WooCommerce checkout fields with this plugin and how powerful it is..
If other plugins add their custom fields in many cases you will also be able to rearrange them ..
You can display the fields not only in the checkout.
Just click required checkbox in the field settings and make field required or optional.
Flexible Checkout Fields is compatible with WPML and Polylang and lets you translate fields data to other languages..
We let you use this validation in the new fields you add to your store using this plugin..
Below you will find all sections and their corresponding hooks ..
Enable conditional logic for fields based on products and or categories in the cart, i.e..
Read more