Magento 2 Shipping Rules Extension
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
Change the price of the shipping methods you already have
- 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
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
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
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
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
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
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
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
Save time by starting your support request online and we'll connect you to an expert.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.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.We are committed to being open and transparent with our customers. When you purchase our module, you automatically receive one year of free support service and free updates.
Why is this important?
- Seamless Installation and Configuration: We understand that setting up a new module can take time to configure according to your specific needs. That’s why we offer a full year of free support. Our experienced team is here to assist you with installation, configuration, and any questions you might have. We're eager to share our expertise to ensure you get the most out of your purchase.
- Stay Updated with Magento (Adobe Commerce) Releases: Magento releases new versions approximately every three months. These updates can sometimes introduce compatibility challenges. To keep your store running smoothly, we provide a year of free access to the latest versions of our modules, ensuring that you can upgrade Magento and our modules without encountering any obstacles.
- Subscription Included: Renewing your subscription ensures continued access to the latest updates and support from our team. This means you can be confident that any issues you encounter with the extension will be resolved quickly and efficiently. You can cancel your subscription at any time without any additional fees.
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.
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.
30-days money back guarantee. If you are not satisfied with our extension performance for any reason, we provide a full refund.
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.
We provide an expanded user guide for every aspect of our extension, so you can find answers for all your burning questions.
You can customize extension according to your needs and requirements.
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.
No core modifications. The extension has been tested in a Magento Cloud environment and is fully compatible with it.