Hey @neal86,
Thanks for clarifying the issue. ??
The tax only works for California, but I’m confused with the calculation of the tax, the tax change when I change either city or zip code.
When taxes are calculated, the WooCommerce Shipping & Tax plugin will send the information via the API to determine what taxes should be charged (i.e. City, County, State, etc) and return those rates on the site. However, some cities do not have a City-specific tax rate so that won’t be charged.
If you calculated rates on your site for a city in California that does have a City-specific tax that you should be collecting, I would double check that the City name was spelled correctly and not abbreviated (as that may cause the API to not know which City is being entered).
Exclude California, it shows 0 tax for all other states
This is also expected as the “Shop address” info (on the WooCommerce > Settings > General page) is assumed to be the only “Nexus” location when using Automated Taxes. Our documentation provides a bit more info about situations like this but if you need to collect taxes for other states besides California, I would suggest disabling Automated Taxes and either using manually-entered tax rates or a plugin developed by a tax company (like TaxJar, for example).