Dynamic Shipping Tax for Magento 2

Dynamic Shipping Tax Extension for Magento 2
Hyvä Compatible Themes Out-of-the-box
Mage-OS Compatible
Composer Installation Composer Installation?

Dynamic Shipping Tax Calculation

Calculate shipping tax in Magento 2 depending on product tax rate of products in cart.

The Dynamic Shipping Tax extension for Magento 2:

  • Shipping tax amounts calculated based on dynamically determined tax rates following one of 2 supported options:
  • Use the highest product tax
  • Use highest amount tax

See All Highlights


Magento Marketplace Approved by
  • One-Time Payment
  • Lifetime Access To Source Code
  • 1 Year Free Support
  • 1 Year Free Updates

Approved & Verified by Magento Marketplace


1st Extension Provider
     With Hyvä Support
     Awesome since 2021!


Unencrypted. 100% Open Source & Customizable


Coding Standards Applied. Clean & Readable Code


Countless Satisfied Customers: Be The Next One!


Made With Love

Our extensions are made with love & passion for building new things, perfection & performance in mind.


Field Tested

Our extensions are field-proven in our own client projects.

Customer Feedback


Dynamic Shipping Tax Calculation For Your Magento 2 Store

Calculate shipping tax depending on product tax rate of products in cart.


Magento 2 by default only supports one static tax rate shipping costs that is applied to all orders, no matter what products are purchased by the customer
However, in some countries, the tax rate for shipping costs actually depends on the tax rate of the products sold.
A Magento store sells products with tax classes of 7% and 19%. The store configured the 19% tax class as a fix tax rate using the Magento default option for tax class to be applied for shipping costs.
Now when a customer purchases some product with a tax class of 7%, the tax rate used for calculating the tax amount for the shipping costs will be 19%.
As a result, the calculated tax amount for the shipping costs is actually too high, compared to the "correct" shipping costs tax rate of 7%.


With the Dynamic Shipping Tax extension for Magento 2 by JaJuMa extension you can now avoid having too high tax amounts on shipping costs.

Instead of using only one fix tax class for all of the sales in your Magento 2 store, you can now choose to have shipping tax amounts calculated based on tax rates that are dynamically determined following one of 2 supported options:

  • Use the highest product tax
  • Use highest amount tax

based on products in customer cart.


Dynamic Shipping Tax by JaJuMa In Detail.
Correctly calculated tax on shipping costs following tax rate of products sold.

Dynamic Shipping Tax - Dynamic Shipping Tax Calculation for Magento 2

Dynamically Calculated Shipping Tax In Your Magento 2 Store

Tax laws can be complicated and so is the tax calculation.
While Magento provides a number of different options for calculating and displaying tax amounts and information, for some use-cases and country specific tax laws these options are still not sufficient.

One example where tax calculations as provided by Magento default are not enough to meet certain local law requirements is the tax calculation for shipping costs.
While Magento out-of-the-box can only calculate tax on shipping costs with one static tax rate, some countries tax laws require the tax rate for shipping costs to follow the tax rate of the products sold.

As a result, the tax amounts calculated with a static tax rate can be wrong and too high.
In the case of Magento stores that are selling products with different tax rates, a dynamic tax rate for shipping costs is needed to meet regulatory requirements regarding taxes and to avoid too high tax amounts.

This is where our Dynamic Shipping Tax extension comes into play, providing you two options for calculating shipping cost tax based on products sold:

  • Based on the highest product tax in cart
  • Based on highest amount tax in cart

Dynamic Shipping Tax - Examples

Examples for
"Use the highest product tax":

  All Products in Cart have tax class = 7%
-> Shipping tax = 7%

All Products in Cart have tax class = 19%
-> Shipping tax = 19%

Some Product in Cart have 7%, some have 19%
-> Shipping tax = 19%

Examples for
"Use highest amount tax":

  Example 1
Cart Total 100
Books (Tax 7%) 60 €
CDs (Tax 19%) 40 €
Shipping Tax -> 7%

Example 2
Cart Total 100
Books (Tax 7%) 40 €
CDs (Tax 19%) 60 €
Shipping Tax -> 19%

Write Your Review

Your Rating:

You submitted your review for moderation.

Frequently Asked Questions

General Magento Extension Questions
How to install Magento 2 extensions from JaJuMa?

We offer different ways of Magento 2 extension installation:

Before Installing

  • We recommend you to duplicate your live store on a staging/test site and try installation on your staging/test site before deploying to your live store
  • Backup Magento files and the store database

Please Note:
It’s very important to backup all themes and extensions in Magento before installation, especially when you are working on a live server. We strongly recommend you to do not skip this step.

Manual Extension Installation via FTP/SSH:

After purchasing an extension, you can download the module as .zip package in your Customer Account.
After downloading the .zip package, please follow these steps for installation:

  1. Log into your hosting space via a FTP client (e. g. FileZilla, WinSCP, cuteFtp)
  2. Create Folder: /app/code/Jajuma/[ExtensionName]*
  3. Unzip extension package and upload files into: /app/code/Jajuma/[ExtensionName]*
  4. Enter and run the following commands at the command line:
    php bin/magento setup:upgrade
    php bin/magento setup:static-content:deploy

* Note: [ExtensionName] can be found in registration.php file: Jajuma_[ExtensionName]


Extension Installation via Composer / Magento Marketplace:

For installation via composer, please get the extension

  • from Github and install as any other extension from Github or
  • from Magento Marketplace and follow this Installation Guide and
    make sure to use the correct key for Marketplace repo (the key that belongs to the account that purchased the module).
    In case of issue with installing via composer, please double-check to use the correct key for Marketplace repo.
    Your key should be in your auth.json file.

Links for composer installation to Github/Marketplace can be found on top of this page in technical info section - Click Here

Error Could not find a matching version of package jajuma/[module-name]. Check the package spelling, your version constraint and that the package

With this error message, most likely the key used for the Marketplace repo is wrong/invalid, i. e. not the key that belongs to the account that purchased the module. Please double-check to use the correct key for the Marketplace repo.

For installing extensions from Magento Marketplace, please follow this guide and make sure to use the correct key for the Marketplace repo:
Installation Guide

Please feel free to get in touch with our support in case you have any further questions or concerns or check with Marketplace support in case the installation issue can not be resolved.

Do you offer free technical support?

After purchasing a (non-free) extension we provide 12 month support via support ticket for free.

Do you offer customization service for your extensions?

Yes, please get in touch with our customer support so we can clarify your requirement and provide a quote.

Where can I download my extension?

You can download your extension from your customer account as soon as the payment has been processed.

Do you offer a free trial period?

Unfortunately, we can not offer a free trial period.

However, we do have demo site for all our extensions. Feel free to test all the features and see how the extensions work.

In case of any questions or concerns regarding compatibility or how some extension works our customer support is also always happy to help.

Do you offer refunds?

All our extensions are non-tangible downloadable goods. Hence we can unfortunately not issue refunds.

Refunds will NEVER be issued for services provided such as installation support, customization and software development work.


Version: 1.0.0

  • Initial Release

Version: 1.0.1

  • Updated Menu & Description

Version: 1.0.2

  • Improvements: Refactoring & Coding Style

Version: 1.0.3

  • Bump Version

More Extensions

Maybe also interesting for you?
More valuable Extensions and Add-Ons for your Magento Store

Our Customers Are Excited!

How do you like this extension?