1
votes

In Woocommerce I have been able to remove postcode checkout field using this code:

add_filter( 'woocommerce_default_address_fields', 'custom_override_default_address_fields' );
function custom_override_default_address_fields( $address_fields ) {
    unset($address_fields['postcode']);

    return $address_fields;
}

How can I remove the postcode field from the shipping calculator in cart page?

Any help will be appreciated.

1

1 Answers

1
votes

This can be done adding the following:

add_filter( 'woocommerce_shipping_calculator_enable_postcode', '__return_false' );

Code goes in function.php file of your active child theme (or active theme). tested and works.

enter image description here