• I need to remove tax based on some field value. Let’s say billing_postcode or zip code

    This is the code I have, but this one work with VAT. Not working with me.

    add_action( 'woocommerce_checkout_update_order_review', 'taxexempt_checkout_based_on_zip');
    
    function taxexempt_checkout_based_on_zip( $post_data ) {
            global $woocommerce;
            $woocommerce->customer->set_is_vat_exempt( false );
            parse_str($post_data);
            if ( $billing_postcode == '32444' ) $woocommerce->customer->set_is_vat_exempt( true );
    }
  • The topic ‘Woocommerce Remove Tax Based on Field Value’ is closed to new replies.