Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
City Tax rate not getting calculated #1355
City Tax rate not getting calculated with automated tax.
The City Tax rate not getting calculated is affecting me too and I cannot use auto calculations as it's pulling the wrong tax rate for my base location. I had to revert to manual calculations for my city but if/when the full US tax in every state goes into effect I will need to open a TaxJar account and revert back to auto. I hope this gets fixed soon.
One more report - 1560593 zen.
I checked this on my test site with Louisville 80027 both as the shop address and the billing address. I've got a total of 4%.
Image Link: http://cld.wthms.co/AtU6yO
Image Link: http://cld.wthms.co/NVfYDf
Image Link: http://cld.wthms.co/9je6jF
We chatted with @marcinbot and he suggested adding an actual Louisville address (I used 141-299 Polk Ave) but that didn't help on both mine and Marcin's test sites.
So it seems that not only the city tax, but the county tax might not be working.
Another report of a different location but same issue: 1666995-zen
Sales tax calculator gives the following taxes, for Arvada 80003 US:
But in WooCommerce we only get a total tax rate of 4%, which is State + District Tax. County tax and city tax are not included. If we have a look at the log we see the following request and reply:
In the reply we can see it did detect the right location:
But the tax rates don't match the calculator:
@jeffstieler Is this an issue with the rates being returned from TaxJar? Should it be reported there directly? It doesn't seem like it's being addressed by any of the previous issues which were linked here.
I had a look at the issues listed here and found the following:
The initial issue by @yukikatayama of Springdale, AR tax rates has been fixed when we added street-level accuracy and the taxes from AR to AR are now 9.75%.
The issues reported by @grigorijurasov and @mikkamp both relate to the state of Colorado. I ran the original plugin and raw requests to the API and they also returned tax rates only for state+special. But then I had a look at https://www.taxjar.com/states/colorado-sales-tax-online/#how-to-register-for-a-sales-tax-permit-in-colorado which mentions:
Which seems to imply that if the seller and customer are located in different districts then the county+city rates do not apply. I checked and if the same postcode is used then the plugin does return all the rates (state, county, city, special) as expected. Also this seems to have been fixed since @grigorijurasov's report where we tested with the same postcode.
So this seems to have been fixed for AR and by design for CO. I'm going to close this, but feel free reopen or create a new issue if needed.
We had a user in the WP.org forum reporting that local taxes were not being collected properly in Colorado.
@shaunkuschel and I ran some tests on my test site to see if we could reproduce it. What we discovered was whenever someone makes a purchase from the same location in Colorado, the state tax in the Standard Rates table would reset and no city tax would be added.
Here is the rate after a Denver to Denver calculation:
Neither one pulled local rates. For Denver it should be:
The only way we could get accurate calculations was to manually add in Denver. After that the calculation there was correct:
These tests were run with: