field required
-
HI,
I am constantly getting complaints from customers about a field they do not need to fill out but have to put something in the address section to process though checkout.
I have found that it is address-2 (flat,suit,unit etc), I have added the following to my Functions.php but it does not work.
Can you help?
“add_filter(‘woocommerce_checkout_fields’, ‘unrequire_address_2_checkout_fields’ );
function unrequire_address_2_checkout_fields( $fields ) {
$fields[‘billing’][‘billing_address_2’][‘required’] = false;
$fields[‘shipping’][‘shipping_address_2’][‘required’] = false;
return $fields;
}”
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘field required’ is closed to new replies.