Last active
July 22, 2019 20:15
-
-
Save fastdivision/1ad0956314ced354ef189e61cfb68ad1 to your computer and use it in GitHub Desktop.
TaxJar WooCommerce Plugin v1.6+ Shipping Overrides
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Manually override shipping taxability in TaxJar for WooCommerce | |
* Tweak class-wc-taxjar-integration.php around line 332 | |
* https://github.com/taxjar/taxjar-woocommerce-plugin/blob/1.6.1/includes/class-wc-taxjar-integration.php#L332 | |
*/ | |
// Make shipping taxable | |
if ( 'AZ' == $to_state ) { | |
$taxes['freight_taxable'] = 1; | |
} | |
// Make shipping tax exempt | |
if ( 'FL' == $to_state ) { | |
$taxes['freight_taxable'] = 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment