Remove Default STATE from Shipping Calculator in the cart
-
Is there a code to remove the default State that is selected from the Shipping Calculator section in the WooCommerce cart. I was able to remove the default State from the CHECKOUT page using the following code and it works great but it still does not remove it from the Cart Total Shipping calculator.
Screenshot here:
https://prnt.sc/12qdxulThis is the code I used to remove the default State from Checkout.
add_filter( ‘default_checkout_billing_state’, ‘change_default_checkout_state’ );
add_filter( ‘default_checkout_shipping_state’, ‘change_default_checkout_state’ );
function change_default_checkout_state() {
return ”;
}
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Remove Default STATE from Shipping Calculator in the cart’ is closed to new replies.