Remove billing_address_2
-
Hey guys,
We were hoping to remove billing_address_2 (which is what we use for shipping) from our checkout page. When we did so, the plugin had trouble validating the address. Not a surprise, since it was looking for address line 2! 🙂
So, we’ve temporarily restored billing_address_2. Is there a way we can modify the plugin so it doesn’t check for address_2?
For reference, here’s the code we were using in functions.php to remove billing_address_2:
function wpb_custom_billing_fields( $fields = array() ) { unset($fields['billing_address_2']); return $fields; } add_filter('woocommerce_billing_fields','wpb_custom_billing_fields');Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Remove billing_address_2’ is closed to new replies.