I have a shop with products that have 6% VAT & products with 21% VAT. The VAT rate that is applied to the shipping cost should depend on the VAT rate of the line item with the highest subtotal (excl VAT).
So the tax rate applied to the shipping cost can be either 6% or 21%, depending on what is ordered.
So for example:
1 Item X (6%): €14 (incl) = €13.2 (excl) 1 Item Y (21%): €15 (incl) = €12.4 (excl) The VAT applied to the shipping cost should be 6% (value item x > value item y)
1 Item X (6%): €14 (incl) = €13.2 (excl) 2 Items Y (21%): €15 x 2 (incl) = €24.8 (excl) The VAT applied to shipping cost should be 21% (value items y > value item x)
I'm guessing you would need an adjuster for this scenario, but have really no idea to how to solve this or how to even get started? Anyone has any idea how to achieve this?