MainWP Community

Remove tax on the cart page in WooCommerce

Hide tax on the cart page in WooCommerce on your child site.

Snippet Type

Execute on Child Sites

Snippet

add_action( 'wp', function() {

    if ( class_exists( 'woocommerce') ) {
        if ( is_cart() ) {
            add_filter( 'wc_tax_enabled', '__return_false' );
        }
    }

});
1 Like