Configuring Specific Tax Setups in WooCommerce

Overview ↑ Back to top

Using the WooCommerce tax settings and custom code (if required), it is possible to configure special setups to fit the needs of your business.

After reviewing the main Setting up Taxes in WooCommerce documentation, read on here for how certain scenarios can be achieved with either the default core WooCommerce settings for scenarios to match local or national tax configurations, or with code snippets.

These scenarios are not exhaustive and the team at WooCommerce.com can only help with the functionality options available in the core WooCommerce plugin, along with additional tax-related products available on the WooCommerce.com Marketplace.

Scenarios ↑ Back to top

Charge customers the same tax rate as the Store Address ↑ Back to top

Some merchants may require all customers are charged the same tax rate for the country or region the store is located in. This means all customers are charged the local tax rate that matches the Store Address.

First, WooCommerce needs to know how to charge customers the tax rate. For this scenario, the Store Address location is used so this setting should be chosen – WooCommerce > Settings > Tax > Tax options > Calculate tax based on > Select – Shop base address

WooCommerce Tax Settings with a highlighted box around the setting for Calculate tax based on, "Shop base address" is selected

Next, WooCommerce needs to set all customers location as the Shop base address – combined with the previous setting, this will charge the customers the local rate: WooCommerce > Settings > General > General options > Default customer location > Shop base address

WooCommerce General Settings with a highlighted box around the setting for Default customer location, "Shop base address" is set

Finally, add the tax rate only for the country and region of your Shop base address. More details for how to do this in the Setting up tax rates documentation.

The customer is now charged the tax rate for the store and the customer can add a specific billing and shipping address at Checkout without this affecting the tax rate.

Charge customers the tax rate for their own billing address ↑ Back to top

Another general scenario is for store to charge the local, regional, or national tax rates for the customer billing address.

First, WooCommerce needs to know how to charge customers the tax rate. For this scenario, the customer location is used so this setting should be chosen – WooCommerce > Settings > Tax > Tax options > Calculate tax based on > Select – Customer billing address

WooCommerce Tax Settings with a highlighted box around the setting for Calculate tax based on, "Customer billing address" is selected

Next, WooCommerce needs to have an address or region to return the correct tax rate. For this Geolocate is used, and the customer general location is send to WooCommerce from the browser, and combined with the previous setting, this will charge the customers the tax rate for their country/region: WooCommerce > Settings > General > General options > Default customer location > Geolocate

WooCommerce General Settings with a highlighted box around the setting for Default customer location, "Geolocate" is set

Finally, add the tax rate for all the countries and regions that you are selling to. More details for how to do this in the Setting up tax rates documentation.

Configuring special tax setups ↑ Back to top

There may be scenarios that you require code customization to achieve the tax setup you need. Our developers have written some technical level details about How Taxes Work in WooCommerce including some filters to change how taxes are shown/displayed:

Code snippets for special tax scenarios ↑ Back to top

Note: This is a Developer level doc. If you are unfamiliar with code/templates and resolving potential conflicts, select a WooExpert or Developer for assistance. We are unable to provide support for customizations under our Support Policy.

Tax based on subtotal amount ↑ Back to top

Apply different tax rates based on the customer role ↑ Back to top

Questions and Support

Do you still have questions and need assistance? 

WooCommerce - the most customizable eCommerce platform for building your online business.

Back to the top