Do you want to disable the local taxes when using local pickups in WooCommerce?
By default, tax calculations for local pickups are based on your base store location instead of the customer’s address.
So, if you want to disable the local taxes and use regular taxes for local pickups, use the code snippet below.
php
/**
* Disable Local Taxes when using Local Pickup in WooCommerce
*/
function maverick_disable_local_taxes_when_using_local_pickup(){
add_filter( 'woocommerce_apply_base_tax_for_local_pickup', '__return_false' );
}
add_action('init','maverick_disable_local_taxes_when_using_local_pickup');