Free & Open Source v1.0.0 Magento 2.4.x

Shipping Restrictions for Magento 2

ZIP code-based carrier control — whitelist which shipping methods appear at checkout based on customer location. Perfect for regional fulfillment strategies.

View on GitHub composer require magendoo/module-shipping-restrictions

Features

ZIP Code Whitelisting

Define exact ZIP codes or ranges where specific shipping methods are available. Only whitelisted carriers appear at checkout for matching addresses.

Multi-Carrier Support

Works with all Magento shipping carriers — Flat Rate, Table Rates, UPS, FedEx, DHL, and any custom carrier. Control each independently.

Admin Interface

Intuitive admin panel for managing ZIP code rules. Add, edit, and remove restrictions without touching code or configuration files.

GraphQL Compatible

Full GraphQL support for headless and PWA storefronts. Restrictions apply seamlessly whether using Luma, Hyva, or a custom frontend.

Performance Optimized

Efficient database queries and caching ensure ZIP code lookups add zero noticeable latency to the checkout process.

Dedicated Logging

Built-in logging for debugging restriction rules. Track which carriers were filtered and why, making troubleshooting straightforward.

Use Cases

  • Regional fulfillment centers
  • Last-mile delivery optimization
  • Seasonal carrier restrictions
  • Multi-warehouse logistics

Installation

Installation via Composer

composer require magendoo/module-shipping-restrictions
bin/magento module:enable Magendoo_ShippingRestrictions
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

After installation, navigate to Stores → Configuration → Sales → Shipping Restrictions to configure your ZIP code rules.

Need help with installation or customization?

Every module is built for production, but every store is different. If you need integration, customization, or enterprise support — let's talk.

Get in Touch GitHub
22+ Years in Commerce Engineering
50+ Enterprise Magento Projects
EU Based in Europe, Serving Europe
OSS Open Source Contributor
Get a Proposal • 24h response Call