Setting up taxes and tax rates is one of the first tasks you want to perform when setting up a store. However, the tax calculation gets carried out by WooCommerc. This document might help you further in how WooCommerce handles the tax :
Therefore, the tax will be either calculated as per admin’s location or customer’s location.
However, for a multivendor site, sometimes a vendor needs to earn tax as per the law in their own state.
As a workaround, this following code will let the vendor add tax per product.
This code will add a section like this scrrenshot :
src=”https://wc-marketplace.com/wp-content/uploads/2019/07/Screenshot-from-2019-07-03-14-32-55.png” alt=”” width=”1302″ height=”636″ />
Now, we also add a checking, if a vendor hasn’t added per product tax, then WooCommerce’s tax rule will be applied. For this use this code :
Here is a screenshot of the cart page :