hide Address entry both billing/shipping
-
I am trying to hide address entry either billing / shipping in the checkout process siince the product does not involve conventional delivery (it is a home visit service).
So using Code Snippet, implemented the following but didn’t work as I expected. The Address entry still remains. Appreiciate for the advise:add_filter( ‘woocommerce_checkout_fields’ , ‘customize_checkout_fields’ );
function customize_checkout_fields( $fields ) {
// Make Billing Address “Not Required”
$fields[‘billing’][‘required’] = false;// Hide Billing Address Fields (Optional)
unset($fields[‘billing’]);// Hide Shipping Address Fields (Optional)
unset($fields[‘shipping’]);return $fields;
}The page I need help with: [log in to see the link]
The topic ‘hide Address entry both billing/shipping’ is closed to new replies.