Magento 2 Shipping Restrictions: Block Methods by Product, Group, Country and Postcode
SKU: SHIPPINGRESTRICTIONS1
- Block rules by product, category, customer group, country and postcode
- Allow and deny rules with priority for exceptions
- Admin test tool: enter country, postcode and product, see the result
- Clear customer message when no shipping method is left
Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.
Magento 2 shipping restrictions: offer only what you can deliver
With the Magento 2 shipping restrictions module you decide which shipping methods appear for which product, customer group, country and postcode. Bulky goods disappear from the parcel choice, islands only get the right freight carrier, hazardous items stay on approved routes. The extension works with Hyvä and is set up personally in your shop by Mironsoft.
Rules by product
Attribute, category or fixed list: bulky goods, liquids or batteries do not take certain routes.
Country, region and postcode
Country lists, postcode ranges, prefixes and wildcards for islands, mountain regions or industrial areas.
Customer groups
Resellers may choose freight while consumers only get parcel, or the other way round.
Allow and deny
Blocks and exceptions with priority, so special cases do not fail on base rules.
Test tool
Enter country, postcode and product in the admin and see which methods remain.
Clear message
If no method is left, the shop explains why instead of showing an empty choice.
Magento 2 shipping restrictions per product: one rule, three questions
Every rule answers three questions: which shipping methods does it cover, under which conditions and with which outcome? Conditions are product attribute, category, customer group, country, region, postcode pattern, weight and cart value. The outcome is block or allow. "Furniture freight never abroad" or "no parcel service above 31.5 kg" becomes a single traceable line.
All rules carry a priority. A specific exception such as "freight allowed for business customers" beats the general block without deleting or rebuilding anything.
- Freely combinable conditions
- Priority for exceptions
- Rules activatable per store view
Magento 2 shipping restrictions by postcode: islands, mountains, special zones
Postcodes can be entered as single values, ranges ("25980-25999"), prefixes ("257*") or lists. This controls island surcharges, zones without weekend delivery or regions a carrier does not serve. Countries work the same way: complete lists or single exceptions.
The rule takes effect as soon as the customer enters country and postcode in the cart or checkout. The offer of methods adapts without a page reload through Alpine.js in the Hyvä checkout.
- Postcodes as range, prefix, wildcard or list
- Countries and regions groupable
- Checkout updates without reload
Magento 2 shipping restrictions in mixed carts: a clear message when no method is left
In a mixed cart you decide whether a single affected item blocks the method or whether all items must be affected. If no method remains, the shop shows your message, for example "We deliver this item to your address by freight only, please contact us". Optionally a note already appears on the product page.
The admin test tool runs every combination of country, postcode, customer group and products. New rules are verified there before a customer ever meets them.
- One item is enough, or all items
- Own message per store view
- Test tool with result list in the admin
Use cases for Magento 2 shipping restrictions in your shop
Magento 2 shipping restrictions solve problems that otherwise land in customer service or returns.
Furniture, bulky goods and pallets
Large items must not enter the parcel choice and go to freight or pick-up only.
Liquids, batteries, hazardous goods
Certain items take approved shipping routes only, never the standard letter.
Country and customs borders
Delivery only to selected countries, the rest gets no method and a clear message.
Reseller pricing and pick-up
Customer groups see different methods, for example pick-up for regular customers only.
Magento 2 shipping restrictions: without and with the module
The standard system knows country and weight limits per method, but no rules across product, group and postcode.
| Topic | Without the module | With Shipping Restrictions |
|---|---|---|
| Product-based block | Not provided | Attribute, category or list |
| Postcode rules | Only through carrier rate files | Ranges, prefixes, wildcards for every method |
| Customer groups | Not per method | Rules per group |
| Exceptions | Rebuild rules | Allow rules with priority |
| Verification | Test order on the storefront | Test tool in the admin |
| Customer notice | Empty choice | Own message and product-page note |
How we set up Magento 2 shipping restrictions in your shop
After the purchase, setup runs in five steps.
Capture methods
We list your active shipping methods and carriers and clarify the blocking cases.
Install the module
Installation of the extension and a test with your Hyvä checkout.
Create rules
We enter your Magento 2 shipping restrictions as rules with conditions, priority and store view.
Write messages
Customer message and product-page note are worded in your voice.
Test runs
With the test tool we check together how Magento 2 shipping restrictions behave for typical addresses and carts.
Scope and notes on Magento 2 shipping restrictions
The module blocks shipping methods, not payment methods. For payment restrictions by country, group or cart, Mironsoft's Payment Restriction applies. If you want to calculate shipping costs by country, postcode, weight and price, use Table Rate Shipping; Shipping Restrictions decides whether a method appears at all. The tax split of shipping costs in a mixed cart is handled by Dynamic Shipping Tax.
Restrictions from hazardous-goods, customs or alcohol law are your responsibility as a merchant. The module reproduces your requirements technically but does not replace the legal check of whether a product may be shipped by a given route.
Typical rules are quickly described. Example one: items with the attribute bulky may only ship by freight or pick-up, so the parcel methods are blocked. Example two: the postcodes of the North Sea islands get their own shipping route and all standard parcels are hidden there. Example three: customers in the reseller group may additionally choose pallet delivery, consumers may not. Each of these rules consists of a few fields and can later be changed without programming.
Because the rules apply while the shipping methods are determined, the checkout stays fast. No extra pages are loaded and no third-party scripts are included. Priority and store-view assignment keep a long rule list manageable, and a validity date covers products that are only blocked for a short time.
No download — personal setup instead
The Magento 2 shipping restrictions module is not listed here as a ready-made download for self-installation. The purchase is a service commission: we install the module in your shop and set up shipping rules, messages and tests with you.
Frequently asked questions
Everything important about rules, postcode patterns, mixed carts, legal notes and the purchase.
How can I restrict shipping methods by postcode in Magento 2?
How can I use Magento 2 shipping restrictions to exclude a method for a specific product?
Which postcode patterns do Magento 2 shipping restrictions support?
What happens when no shipping method is left?
How does a cart with several products behave?
Can I hide shipping methods per customer group?
Can I test rules without placing an order?
Does it work with all carriers?
Does the shipping restrictions extension work with Hyvä?
Can I download and install the module myself?
Magento 2 shipping restrictions – Mironsoft