Want to know what WordPress Theme a site is using? Check Out Now!

How to Disable Local Taxes when using Local Pickup in WooCommerce?

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.

/**
 * 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');

Leave a Reply

Your email address will not be published. Required fields are marked *