I am working on an e-commerce website built in woocommerce. When a customer placed an order, he/she is required to enter a province in the billing address in the checkout page. It is by default set to ‘Required’ by Woocommerce. but I don’t want it to be compulsory. How can I ‘Unrequired’ the province field in the checkout page? Please help.
1 comment
Comments are closed.
I don’t think the “province” is a default woocommerce checkout field, but here is an example you can use if you know the right “province” field name :
insert this into your functions.php file inside your WordPress theme.