unset zip code conflicts with disabling shipping calculations on cart
-
I have “Enable the shipping calculator on the cart page” disabled and “Hide shipping costs until an address is entered” enabled to disable shipping cost calculations to be viewed on the cart page, this is however conflicting with the function where I unset the ZIP code in default addresses function.
How can I solve this? Unsetting postal code forces default address to be calculated and shown on the cart pagemy function:
add_filter( ‘woocommerce_default_address_fields’ ,’override_default_address_fields’ );
function override_default_address_fields( $fields ) {
// unset($fields[‘postcode’]);
}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘unset zip code conflicts with disabling shipping calculations on cart’ is closed to new replies.