In the Netherlands the tax rates varies on what you send.
For example
How can I achieve this?
I know there are other countries with similar regulations, but I can't find any solution.
I don't have experience here but an older post on stackexchange about this (https://magento.stackexchange.com/questions/44202/vat-over-shipping-costs-depending-on-vat-rate-of-p...), suggests that the FireGento_MageSetup extension might help.
https://github.com/firegento/firegento-magesetup2
It's the same thing in Sweden - By law the shipping tax should have the same tax rate as the product that you are selling. If a customer buys two products with two different tax rates then it's the highest tax rate that should be valid as a tax rate for shipping.
In Sweden there's 6% tax for books, 12% tax for food products and 25% for all other products and services. So if there's a BBQ shop like ours that sell grills (25% tax) but also BBQ rubs and BBQ sauces (12% tax) then it's impossible to have the correct tax rate for shipping that the law requires.
Did you find a solution about this ?
Maybe.
The project is on hold, so I've not yet have the chance to test a possible solution.
But it seems I've already had the possibility to handle this problem.
I'm using EU VAT ENHANCED FOR MAGENTO 2. This module also has the ability for dynamic tax rates.
Sven, the developer is really helpful if you have any questions.
The module is from GEISSWEB.
Let me know if this works for you.
It has been almost 2 years since the original post.
Has anyone found a solution to this?
maybe it's a bit late, but you can achieve this under
tax > tax classes > dynamic shipping tax class calculation and use the option "Use the highest product tax"
but have to install the firegento extension like tom robertshaw said.
https://github.com/firegento/firegento-magesetup2