Skip to content

Instantly share code, notes, and snippets.

@fastdivision
Last active July 22, 2019 20:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fastdivision/1ad0956314ced354ef189e61cfb68ad1 to your computer and use it in GitHub Desktop.
Save fastdivision/1ad0956314ced354ef189e61cfb68ad1 to your computer and use it in GitHub Desktop.
TaxJar WooCommerce Plugin v1.6+ Shipping Overrides
<?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