Magento 2 Shipping Rules Extension

View Demo

Shipping Rules changes the price of the shipping methods your Magento 2 store already offers. Replace a rate, add a fee or give a discount based on the products in the cart, order subtotal and weight, destination, customer group, day and time.

Charge per order, per product, per item or by weight, cap the result with minimum and maximum thresholds, and reuse the same Shipping Areas in every rule.

  • Add fees or discounts to existing shipping rates
  • Set shipping rates per product, per item and per order
  • Different shipping prices for customer groups
  • Set different shipping prices by region, city or ZIP
  • Percent of the product price or carrier rate
  • Min and max thresholds for the final rate
Hyvä
Magento Cloud
WCAG
Mage-OS
Compatible with:
Community:
2.3.* - 2.4.9
Enterprise:
2.3.* - 2.4.9

Change the price of the shipping methods you already have

Shipping Rules adjusts the rates your carriers and Magento methods return: replace a price, add a fee or give a discount, depending on what is in the cart, where it ships and who is buying.
  • Products: charge more for heavy, fragile or oversized items, or ship selected products for free.
  • Cart: react to subtotal, item quantity and total weight, for example fixed shipping on orders over $500.
  • Customer: set a different shipping price for wholesale, retail or guest customers and for new or returning buyers.
  • Destination and time: add a fee for remote regions or change the price by day of the week and hour.

What it does and what it doesn't

The module works on top of the shipping methods your store already shows. A rule picks the methods it applies to, checks its conditions and changes the price. It recalculates automatically whenever the customer edits the cart, changes the address or picks another method.

It doesn't create new methods and doesn't hide them. To add a method with its own rate table, use Shipping Table Rates. To hide a method for some products, customers or addresses, use Shipping Restrictions. Setup is described step by step in the user manual.

Common shipping rules you can set up

Shipping rule that adds a fee for a shipping area

Surcharge for heavy, fragile or oversized products

Add a fee when the cart contains products with a certain attribute, category or SKU. Conditions are checked against the exact variant of a configurable product, so you can charge extra for the large size only.

Free shipping for selected products, groups or order amounts

Recalculate the price of a method to zero when the order meets your conditions: a specific product or category in the cart, a customer group, or a subtotal above a threshold.

Shipping price by brand or category

Use any product attribute available for promo rule conditions, such as brand or category, to set the shipping price for those products.

Shipping discounts

Subtract a fixed amount or a percentage from the carrier rate, for example for large orders or for your best customer groups.

Shipping cost per product or per item

Selecting shipping methods for a rule

Charge for the products in the cart, not only for the order as a whole:

  • Rate per product: a fixed amount for each product line in the cart that matches the rule.
  • Rate per one item: a fixed amount for each unit, so three of the same product cost three times as much to ship.
  • Rate per unit of weight: a price per kilogram or pound of the matching products. You can choose a custom attribute to use as weight.
  • Percent of the product price: shipping that grows with the value of the matching products.

Only products that pass the rule's action conditions are counted, so one rule can charge for bulky goods and leave the rest of the cart at the standard rate.

Different shipping prices for customer groups and stores

Store view and customer group settings of a rule

Each rule applies to the store views and customer groups you select. Give wholesale customers a lower rate, charge guests the full price, or run different shipping prices in each store view.

You can also target buyers by history: the Number of orders condition separates first-time customers from returning ones, and the Company condition applies a rule to B2B addresses.

How the price is calculated

Rates and thresholds of a shipping rule

Every rule has a fee calculation mode and one or more rates:

  • Re-calculate shipping fee replaces the method's price with the rule's result.
  • Add extra fee adds the result to the carrier rate.
  • Subtract extra fee lowers the carrier rate, but never below zero.

Six rate types are available: fixed rate per order, rate per product, rate per one item, rate per unit of weight, percent of the product price and percent of the base rate. If a rule has several rates, they are added together.

Minimum and maximum thresholds keep the result in range. For example, $10 per product capped at $100 never charges more than $100, however large the order.

When several rules match, priority sets the order in which they run, and Stop further rules processing ends the chain once a rule is applied.

Conditions for every situation

Rule conditions with product attribute combination

Rules use the same condition builder as Magento cart price rules, plus extra conditions built for shipping:

  • Cart: subtotal, subtotal excluding tax, total items quantity, total weight, shipping method
  • Products: attribute combination and product subselection
  • Address: country, state, region, city, ZIP code, company
  • Stock: backordered items and whether products are in stock at a specific MSI source
  • Customer: number of previous orders
  • Time: day of the week and time of day

Apply rules on certain days and hours

Day of week and time of day conditions

Turn a rule on for selected days of the week and a time window. For example, add a fee for orders placed on weekends or after your daily cutoff, or run a lower rate during weekday mornings.

Day and time conditions combine with any other condition, so the same weekend fee can apply only to one region or customer group.

Shipping Areas: define a zone once, reuse it everywhere

Shipping area conditions

Instead of repeating the same list of countries and ZIP codes in every rule, save it as a Shipping Area: a named zone built from countries, states, regions, cities and ZIP codes, with any part included or excluded.

Rules then use the area as a single condition. Typical areas are "non-contiguous US states", "EU countries" or "outside the store's state". The same areas work in Shipping Restrictions and Shipping Table Rates.

Full Features List

  • Change the price of existing shipping methods and carriers
  • Apply a rule to selected carriers or individual methods
  • Conditions by product attribute combination and product subselection
  • Extra conditions:

    • Day of the week
    • Time of day
    • Shipping Area
    • City and company
    • Backordered items and stock at an MSI source
    • Number of customer orders
  • Rules by store view and customer group
  • Priority and stop further rules processing
  • Fee calculation:

    • Re-calculate shipping fee
    • Add extra fee
    • Subtract extra fee
  • Copy a rule to start a new one
  • Admin translated into 15 languages

Cart conditions:

  • Subtotal
  • Subtotal excluding tax
  • Total items quantity
  • Total order weight
  • Shipping method
  • Shipping postcode
  • Shipping region
  • Shipping state/province
  • Shipping country
  • Rate types:

    • Fixed rate per order
    • Rate per product
    • Rate per one item
    • Rate per unit of weight (custom weight attribute supported)
    • Percent of the product price
    • Percent of the base rate
  • Minimum and maximum shipping rate thresholds
  • Reusable Shipping Areas as condition templates
Install Shipping Rules and set the shipping price for each product, cart and customer group.
No hidden fees
Our developers install the extension on your store and configure it for your setup, free of charge.
Lifetime access to source code
Access to free support and updates for 1 year
Updates and support prolongation - $90

Pay today $149 for the first year.

Then $90 for updates and support services per year.

Cancel anytime.

30 days money back guarantee
See it in action!
Pick a quick tutorial to learn about various aspects of this extension
Customer Reviews 5
Earn points for your review about this extension modules. $1 = 10 points
Write Your Own Review

check-circle You submitted your review for moderation.

HowardMec Verified Buyer
From Prescott Valley, United States
Using the module for over 1 year
Does the job
Does the job for our complex site. Thanks for making this available.
Also installed:
Advanced Product Feeds
Muhannad Verified Buyer
From Palestine
Using the module for over 2 years
Its flexibility tailors shipping prices precisely.
is a game-changer for e-commerce. Its flexibility tailors shipping prices precisely. The user-friendly interface ensures easy rule setup. It performs smoothly without conflicts. Exceptional support and regular updates solidify its value. A smart investment for Magento 2 stores.
Also installed:
Advanced Reports,  Product Kits ,  Order Management,  Full Page Cache Warmer,  Automatic Related Products,  AI Agent Integration (MCP)
Toke Verified Buyer
From Copenhagen, Denmark
Using the module for over 1 month
Flexible
Like many other modules from Mirasvit, this makes it very easy to adjust shipping based on content, weight, and many other parameters. Much better than native magento and other plugins can offer.
Also installed:
Follow Up Email,  RMA,  Google PageSpeed Optimizer,  Full Page Cache Warmer,  Blog MX,  Elastic Search Ultimate,  Google Tag Manager and 26 more
Xubee Verified Buyer
From Durban, South Africa
Using the module for over 1 month
Great Extension
This extension was extremely helpful for us to customize and make flexible shipping charges on our website. Great Work! Keep it up guys!
Also installed:
Advanced Product Feeds,  Full Page Cache Warmer,  Reward Points,  Layered Navigation,  Store Credit & Refund,  RMA,  Help Desk MX and 9 more
Sam
From United States
Nice Extension
I have been very happy with it. Best of all it supports extra conditions even on product level
Manual & Support
Need more help?

Save time by starting your support request online and we'll connect you to an expert.

Frequently asked questions
chevron-down chevron-right

What exactly does the Shipping Rules extension do?

It changes the price of the shipping methods your store already offers. Each rule selects the carriers or methods it applies to, checks conditions on the cart, products, address, customer and time, and then replaces the price, adds a fee or subtracts a discount.

The price is recalculated automatically whenever the customer updates the cart, changes the address or picks another method.

chevron-down chevron-right

How can the shipping price be modified?

A rule can replace the method's price, add an extra fee or subtract a fee (the result never goes below zero). For example, add a surcharge for heavy or oversized products that need extra packaging, or give a shipping discount to loyal customers.

The amount comes from one of six rate types: fixed rate per order, rate per product, rate per one item, rate per unit of weight, percent of the product price and percent of the base rate. A rule can combine several rates, which are added together, and minimum and maximum thresholds keep the result in range.

chevron-down chevron-right

What happens when several rules match the same order?

Rules run in order of priority. To stop lower-priority rules from changing the price further, enable Stop further rules processing on the rule that should win.

chevron-down chevron-right

Can I set shipping prices by brand or category?

Yes. Use the product attribute combination condition with brand, category or any other attribute. The attribute needs Use for Promo Rule Conditions set to Yes in its properties.

chevron-down chevron-right

Can I offer free shipping only for certain products or customer groups?

Yes. Create a rule with Re-calculate shipping fee and a fixed rate of 0, then limit it to the products, categories, customer groups or order subtotal that should ship for free.

chevron-down chevron-right

Can shipping cost differ by customer group?

Yes. Every rule applies to the customer groups you select, so wholesale, retail and guest customers can see different prices for the same method. The Number of orders condition also lets you treat new and returning customers differently.

chevron-down chevron-right

Can I add new shipping methods with this extension?

No, it works with the methods already available in your store. To create custom methods with their own rate tables, use Shipping Table Rates.

chevron-down chevron-right

Can it hide a shipping method for some customers or addresses?

No, Shipping Rules only changes prices. To hide a method for a customer group, address or set of products, use Shipping Restrictions. Both modules share the same Shipping Areas.

chevron-down chevron-right

Does it work with Hyvä Checkout?

Yes. The module changes rates on the server when Magento collects shipping methods, so the adjusted prices appear in Luma checkout and Hyvä Checkout alike.

chevron-down chevron-right

Does the changed shipping price affect payment methods?

No. The extension changes only the shipping price; the list of payment methods and their settings stay the same.

Changelog
Version 1.2.8Sep 23, 2026
Internal code improvements and maintenance.
Version 1.2.7Aug 25, 2026
A shipping rule rate or fee threshold typed with a comma (e.g. 2,3) is now rejected instead of being saved as the wrong amount and charging the wrong fee.
A shipping rule that can't be saved now keeps the values you already entered instead of emptying the form.
Shipping rate calculation is faster at checkout when several shipping methods are active.
Version 1.2.6Aug 4, 2026
Fixed the configurable-product attribute enrichment overwriting the cart item's product identity. Enrichment now copies only attribute values, never identity/structural fields.
Version 1.2.5Jul 21, 2026
Migrated saved table-rate method references (mstrate/mstrate_<id> → mstrate/mstrate<id>) to match the new underscore-free method code format introduced in Mirasvit_ShippingTable 0.2.1. Without this, rules targeting a Table Rates method would silently stop matching after the update.
Version 1.2.4May 19, 2026
Localized to 15 core e-commerce locales (ar, cs, de, es, fr, it, ja, nl, pl, pt-BR, pt-PT, sv, tr, uk, zh-Hans)
Fixed invalid translate="true" attribute on <comment> element in system.xml that caused Magento config XSD validation to fail with "attribute translate is not allowed". The parent <field> declaration translate="label comment" already covers comment translation.
Reasons to choose Mirasvit
Client focusing and satisfaction

These are our primary. A major portion of our new clients come from referrals from our existing clients. Our professional team of developers, marketers and support staff have invested the best knowledge and experience in the field into our work, so you know you can come back to us again and again.

Remarkable support

One year free and high quality support. We go to great lengths to provide maximum satisfaction with every module you have purchased in our store. By helping you with installation, configuration, answering your every question, we do all our best to eliminate any possible problems.

Risk-free Investment

30-days money back guarantee. If you are not satisfied with our extension performance for any reason, we provide a full refund.

Constant improvements and upgrades

We constantly add new features to all our modules, and are always interested in hearing your opinion and implementing your suggested features in our future developments.

Comprehensive Documentation

We provide an expanded user guide for every aspect of our extension, so you can find answers for all your burning questions.

Unencrypted source code of our products

You can customize extension according to your needs and requirements.

Usability and Performance

The Module is easy to install and upgrade, just follow our step-by-step user guide. Additionally, the extension is ready to use with the Hyvä theme.

Ready for Magento Cloud

No core modifications. The extension has been tested in a Magento Cloud environment and is fully compatible with it.

Loading...