Vendor Per Product Tax

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 :

Now, this code will save the value.

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 scrrenshot of the cart page :

Posted on : July 19, 2019
Modified : August 6, 2019

Raju The Cool Guy

WCMp bundle is available at a slashed price

Grab It Now