Shipping Restrictions Extension
- Community
The Problem
- ✖ Default Magento provides limited control over individual shipping methods
- ✖ Merchants cannot easily restrict shipping based on cart, product, or destination conditions
- ✖ The same shipping options may appear for unsupported products, regions, or customer groups
- ✖ Complex shipping requirements often require custom development
The Solution
Toweringmedia Shipping Restrictions Extension gives merchants precise control over the shipping methods available at checkout and during admin order creation. Create flexible rules based on cart contents, product attributes, shipping destination, customer groups, coupons, store views, backorder status, days, and time periods—without modifying Magento core files.
How It works
See It In Action
Rule-Based Shipping Method Control for Magento Checkout
Shipping Restrictions lets you define exactly which shipping methods appear — or are blocked — based on any combination of cart attributes, destination, customer group, day of week, time of day, and coupon usage. Build the rules you need from the admin interface without any code changes.
Rules use a familiar condition builder (Amasty-style) that supports cart-level attributes (total, weight, item count), product subselection (restrict if any product in cart matches), destination (country, state/region, postcode range), and customer group. Each rule maps to one or more specific carriers or carrier::method pairs.
- Restrict by state/province, country, or postcode (e.g. block Alaska and Hawaii)
- Cart conditions: subtotal, weight, item count, product attribute subselection
- Customer group scoping (guest, retail, wholesale, custom groups)
- Day-of-week and time-window scheduling per rule
- Restrict specific carriers, method titles, or carrier::method patterns
- Custom error messages with
{all-products}and{last-product}placeholders
Coupon Logic & React Checkout Pro Integration
Shipping restrictions can be tied to coupon usage — enable or disable specific shipping methods when a coupon code is applied or not applied to the cart. This is useful for promotional scenarios where free shipping should only appear when a valid discount code is active.
Restrictions integrate with the standard Magento shipping rate collection pipeline and work natively with React Checkout Pro, ensuring rule enforcement is consistent whether customers use the default Magento checkout or the faster headless checkout experience.
- Coupon-conditional rules: enable/disable method when coupon applied or absent
- Store-view scoping for multi-store and multi-region setups
- Admin-area scoping — restrict ordering methods in admin-placed orders independently
- Works with native Magento checkout and React Checkout Pro
- Dynamic placeholder messages show which product triggered the restriction
Requirements
- Magento 2.4.4+ · PHP 8.1+
- Composer:
toweringmedia/module-shipping-restrictions:^1.0
📘 Documentation
The Shipping Restrictions Extension is designed with an intuitive interface, making it easy to create and manage shipping restriction rules without custom development.
- Compatibility guidance for Magento shipping methods and supported third-party carriers
- Easy-to-configure restriction rules
- Flexible condition-based shipping restrictions
- Supports customer groups, destinations, products, coupons, and schedules
- Detailed documentation will be available soon
👉 Documentation coming soon. If you need assistance, please contact our support team.
💬 Support
Need help? Our Magento experts are ready to assist you with installation, configuration, and shipping rule setup.
- Fast and reliable technical support
- Installation and configuration assistance
- Help creating complex shipping restriction rules
- Troubleshooting shipping method visibility issues
- Compatibility guidance for Magento and third-party shipping modules
The Magento 2 Shipping Restrictions Extension allows you to control which shipping carriers and shipping methods are available during checkout and admin order creation. Using flexible rule-based conditions, you can hide shipping options that should not be offered to specific customers, products, or destinations—without modifying Magento core files.
You can create restriction rules using a wide range of Magento conditions, including shipping country, state or province, postcode, city, cart values, product attributes, customer groups, coupon codes, cart price rules, store views, backorder status, days of the week, and time periods.
Yes. You can configure a custom restriction message to explain why a shipping method is unavailable. The extension also supports the {all-products} and {last-product} placeholders, allowing you to include product names directly in the displayed message.
Yes. You can restrict entire shipping carriers or target individual shipping methods. The extension also supports carrier and method matching patterns, giving you greater flexibility when configuring shipping rules.
- Magento Version: Designed for Magento 2.4.x
- PHP Version: PHP 8.2, 8.3, and 8.4
- Framework: Built using Magento 2 native modules, plugins, and rule conditions
- Installation Type: Composer installation
- Required Dependency: Toweringmedia Base module
- Restriction Scope: Complete shipping carriers or individual shipping methods
- Method Matching: Method title, carrier and method patterns, and regular-expression patterns
- Rule Engine: Magento native cart, address, and product condition framework
- Restriction Message: Optional custom checkout message
- Message Placeholders: {all-products} and {last-product}
- Supported Conditions: Destination, cart values, product attributes, customer groups, coupons, cart price rules, stores, backorders, days, and time periods
- Backorder Scope: All orders, backorders only, or non-backorders
- Multi-Store Support: Yes
- Rule Store Scope: Selected store views or all stores
- Customer Group Scope: Selected customer groups or all groups
- Checkout Support: Magento shipping rate collection and React Checkout Pro
- Admin Order Support: Rules can optionally apply during admin order creation
- Coupon Support: Apply or disable restrictions using coupon codes or cart price rules
- Subtotal Configuration: Optionally include tax and discounts in subtotal-based conditions
- Core Modifications: No Magento core file modifications