Magento 2 Experts — Hyvä Theme, Tailwind CSS & SEO from a Single Source ›

Magento 2 Shipping Tax Split Proportionally by Tax Class

Magento 2 Extension Hyvä Ready Magento 2.4.x

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
Auf Lager
€199.00

Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.

No download, but personal setup

No download, but personal setup. This product is not a downloadable software package for self-installation. With your order, you commission Mironsoft to individually set up this module in your shop. We will get in touch with you within 2 business days — we'll sort out the details and payment together then.

This offer is aimed at business owners and companies running a Magento 2 shop.

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.

6 Features

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.

Visible breakdown

Cart, checkout, invoice and order email show the tax shares separately.

Exceptions per shipping method

Single methods, such as pickup, can use a fixed tax class.

01Proportional split

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
Example · cart with two tax rates
Worked example, shipping net 5.00 EUR
Goods 7%: 20.00 EUR netshare 20%
Goods 19%: 80.00 EUR netshare 80%
Shipping 7%: 1.00 EURtax 0.07 EUR
Shipping 19%: 4.00 EURtax 0.76 EUR
Stores › Configuration › Dynamic Shipping Tax
Split basis
Net goods value after discount
Participating tax classes
Reduced (7%), Standard (19%)
Fallback tax class
Standard (19%)
Shipping method exception
Pickup: Standard (19%)
02Rounding and fallbacks

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
03Documents and communication

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
Invoice · totals
Subtotal net100.00 EUR
Shipping net5.00 EUR
VAT 7%1.47 EUR
VAT 19%15.96 EUR

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.

AspectWithout moduleWith 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. 1

    Review

    We check your tax classes, shipping methods and the current tax calculation in your shop.

  2. 2

    Define rules

    You decide whether to split by net or gross goods value and which fallback class applies.

  3. 3

    Installation and testing

    We install the module and test sample carts including invoice, credit memo and email.

  4. 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.

04How the purchase works

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.

Important to know

Your purchase does not include a download link. We will get in touch with you within 2 business days — we'll sort out the details and payment together then. This offer is aimed at business owners and companies running a Magento 2 shop.

FAQ

Frequently asked questions

Answers to typical questions about Magento 2 shipping tax.

Is a proportional shipping tax mandatory in Germany?
That depends on your business model and on how the tax authority interprets it. The module implements the split technically; please have the tax assessment done by your tax advisor.
Does the module change the shipping price?
No. It only changes which VAT rates are applied to the shipping amount. Prices are still defined by your shipping methods.
What happens with rounding differences?
The remainder cent is added to the share with the largest goods value, so total and parts always match exactly.
Does it work with credit memos and partial refunds?
Yes. The shipping part of a credit memo follows the stored split of the original order.
Can I exclude individual shipping methods?
Yes. You can assign a fixed tax class per shipping method, for example for pickup. No split happens there.
How can I split shipping tax proportionally in Magento 2?
With the module you define which tax classes participate and whether the split uses net or gross goods value. The Magento 2 shipping tax is then calculated automatically per cart.
Does the Magento 2 shipping tax module work with Hyvä?
Yes. The breakdown in cart and checkout is rendered with Alpine.js in the Hyvä standard, without extra JavaScript.
What is a mixed cart in VAT terms?
A cart containing products with different VAT rates, in Germany for example 7% and 19%. For the shipping costs the question of how to split arises.
Is the module a download or a plugin to install myself?
It is set up as an extension for your shop. The purchase is a service order and we handle the installation.
Can I download and install the module myself?
No. This offer is not a download product. After purchase we install and configure the module personally in your shop.
Write Your Own Review
You're reviewing: Magento 2 shipping tax – Mironsoft Dynamic Shipping Tax
loader
Loading...

You submitted your review for moderation.

This form is protected by reCAPTCHA - the Google Privacy Policy and Terms of Service apply.

Magento 2 shipping tax – Mironsoft Dynamic Shipping Tax

Magento 2 shipping tax – Mironsoft Dynamic Shipping Tax

€199.00