Magento 2 Shipping Tax Split Proportionally by Tax Class
SKU: DYNAMICSHIPPINGTAX1
- Proportional shipping tax for carts mixing reduced and standard VAT
- Split by goods value per tax class
- Tax breakdown in checkout, invoice and email
- Credit memos follow the invoice split
Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.
Magento 2 shipping tax for mixed carts: the problem
Anyone selling goods at both the reduced and the standard VAT rate in Germany faces a question about shipping costs: which rate applies? Magento by default knows only a single tax class for shipping. The Magento 2 shipping tax in this module solves it by distributing the shipping amount proportionally over the tax classes of the cart items.
The module is aimed at merchants with a mixed range, such as books and accessories, food and household goods, or specialist literature and software. It works as an extension without touching the Magento core, is designed for Hyvä shops and only changes how shipping is taxed, not what it costs. The tax assessment for your company remains with your tax advisor.
Magento 2 shipping tax: shipping costs taxed correctly in mixed carts
When books and accessories end up in one order, shipping needs more than a single VAT rate. The module calculates it automatically.
Proportional split
Shipping tax is distributed in proportion to the goods value of each tax class.
Selectable basis
Split by net or gross goods value, matching how your bookkeeping works.
Tax class selection
You decide which product tax classes take part in the split.
Cent-accurate rounding
Rounding differences land on a defined share, never get lost.
Exceptions per shipping method
Single methods, such as pickup, can use a fixed tax class.
Magento 2 shipping tax: one cart, two tax rates, one clean shipping line
By default Magento taxes shipping with exactly one tax class. If a cart contains items at the reduced and at the standard rate, that often does not fit your tax situation. The module distributes the shipping amount in proportion to the goods value of each tax class and calculates tax per share.
- Split by net or gross goods value
- Only selected tax classes participate, the rest uses the fallback class
- Cart rules and discounts are applied before the split
Rounding and fallbacks for proportional shipping tax
Split amounts rarely come out in whole cents. The rounding remainder always goes to the same share so that the total and its parts match exactly. If a cart holds only non-taxable items, a configurable fallback tax class applies.
- Remainder cent goes to the share with the largest goods value
- Fallback tax class for carts without taxable items
- Fixed tax class per shipping method, e.g. pickup or freight
Invoice, credit memo and email with the same tax split
The calculated shares are stored with the order. Invoice, credit memo and confirmation email read the same values, so the system never keeps a second opinion. For a partial credit memo the shipping part is refunded using the original split.
- Tax breakdown in cart and checkout (Hyvä, Alpine.js)
- Identical values in invoice, credit memo and order email
- Note: not a substitute for advice from your tax advisor
Use cases for Magento 2 shipping tax
Anywhere a cart can contain two VAT rates.
Book and media retail
Books run at the reduced rate, accessories such as bookmarks or covers at the standard rate. Shipping for the mixed order is distributed proportionally.
Food and household
Groceries and household items in one parcel: the Magento 2 shipping tax splits the shipping amount by goods value.
Specialist retail with accessories
A main product at the reduced rate plus consumables at the standard rate. The split follows the real cart composition.
Multiple shipping methods
A fixed tax class can apply to pickup or freight, while parcel shipping is calculated proportionally.
Standard Magento versus Magento 2 shipping tax module
The difference lies in the tax treatment, not in the shipping price.
| Aspect | Without module | With module |
|---|---|---|
| Shipping tax class | One class for all orders | Proportional by the tax classes of the items |
| Mixed cart 7% / 19% | Shipping is taxed at a flat rate | Shipping is split by goods value |
| Rounding difference | Not handled | Remainder cent to largest share |
| Invoice and credit memo | One tax rate for shipping | Separate shares, credit memo follows the split |
| Exceptions | None | Fixed tax class per shipping method |
Setting up the Magento 2 shipping tax module
-
1
Review
We check your tax classes, shipping methods and the current tax calculation in your shop.
-
2
Define rules
You decide whether to split by net or gross goods value and which fallback class applies.
-
3
Installation and testing
We install the module and test sample carts including invoice, credit memo and email.
-
4
Approval
If you wish, you compare the results with your tax advisor, then the feature goes live.
Distinction from other Mironsoft modules
The Magento 2 shipping tax only changes how shipping costs are taxed. For different shipping prices per product there is a separate shipping-per-product module, for showing progress towards free shipping a free-shipping bar, and for minimum order values another module. All of them can be used together with this one without overlapping.
Merchants who use Magento 2 shipping tax keep their shipping prices unchanged and only adjust the tax display. That keeps the change small: prices, shipping methods and checkout stay familiar, only the Magento 2 shipping tax on the document becomes more differentiated.
No download, but personal setup
Dynamic Shipping Tax is not listed here as a ready-made download for self-installation. The purchase is a service order: after buying we contact you, set up the module and agree the split rules together with you and, if you wish, your tax advisor.
Frequently asked questions
Answers to typical questions about Magento 2 shipping tax.
Is a proportional shipping tax mandatory in Germany?
Does the module change the shipping price?
What happens with rounding differences?
Does it work with credit memos and partial refunds?
Can I exclude individual shipping methods?
How can I split shipping tax proportionally in Magento 2?
Does the Magento 2 shipping tax module work with Hyvä?
What is a mixed cart in VAT terms?
Is the module a download or a plugin to install myself?
Can I download and install the module myself?
Magento 2 shipping tax – Mironsoft Dynamic Shipping Tax