Shipping tax calculation law
-
Hi,
I’m currently looking for solution for making Woocommerce compatible with tax regulations in Slovakia.
Based on our law, the shipping tax should be calculated based on invoiced products tax rates, but here is the tricky part.
Let’s make an example.
I have a store where customers can buy books as well as artworks. Books are taxed with reduced 10% tax rate, and artworks are taxed with standard 20% tax rate.
If customer makes an order there all invoiced items are in the 10% tax rate, the shipping tax rate should be 10% as well. If customer makes an order with all products with 20% tax rate, the shipping tax rate should be 20% as well.
But! If customer makes order where for example 1 product has 10% tax rate and 1 product has 20% tax rate, than shipping must have tax rate calculated based on percentage of price of products with each tax rate.
So if I have order with books for 150€ with tax rate of 10%, and artworks worth 450€ with tax of 20% = together 600€, than shipping has to be calculated this way:Right now shipping costs 4.17€ (excl. tax)
Price should be in this example calculated:
150€/600€ * 4.17€ = 1,04€ (this amount needs to be taxed with 10% tax)
450€/600€ * 4.17€ = 3.13€ (this amount needs to be taxed with 20% tax)I hope it’s all makes sense.
And now here is my question. Is there a way to make this calculation possible somehow, just using Woocommerce setting? If yes, how?If not. Do you have any hints, how to code this? I never made some additional code changes to Woocommerce so I am new to this.
Thank you so so much for every kind of help!
- The topic ‘Shipping tax calculation law’ is closed to new replies.