Automattic / woocommerce-services

WooCommerce Services is a feature plugin that integrates hosted services into WooCommerce (3.0+), and currently includes automated tax rates and the ability to purchase and print USPS shipping labels.
GNU General Public License v2.0
107 stars 20 forks source link

WCTax: Allow the merchant to add multiple economic Nexus locations #1584

Open DanReyLop opened 5 years ago

DanReyLop commented 5 years ago

We'll let the merchant tell us about which states do they have an economic Nexus in, so we don't have the responsibility of keeping up with law changes.

The selected states can be sent in the TaxJar "rates" request as extra information.

Right now, TaxJar only supports 1 Nexus per state, so for states with ultra-complex tax laws like Colorado this will still not be perfectly accurate, because it won't allow the merchant to have 2 warehouses in different counties of Colorado.

Optional: Add an admin notice to alert merchants of this feature, and maybe be a bit smart about it and remind the merchant again when there's a significant volume of orders from a given state.

dechov commented 5 years ago

API integration aside, I think a multiselect-type setting (such as this one) would be appropriate for this – just noting it as an implementation FYI and in case there are alternative ideas.

DanReyLop commented 5 years ago

@v18 for reference (this may save you a whole 2 minutes of research). The /taxes endpoint (docs) allows an array of nexus_addresses. On each of these addresses, anything other than country and state is ignored. I think the from address is always assumed to be a nexus, but it would be good to confirm it. We had a chat with TaxJar about this at some point early in the year, but I can't find it.

v18 commented 5 years ago

Thank you @DanReyLop! 🙌