Shipping availability can make a big difference to the shopping experience of an online store. A customer may find the right product, add it to their cart, and reach the checkout, only to discover that delivery is unavailable in their area. For store owners, this can lead to abandoned carts and missed sales.
If your business delivers to selected locations across the United States, configuring WooCommerce shipping by ZIP code can help you control where orders can be shipped and which delivery options customers can access. It also helps streamline WooCommerce order fulfillment by ensuring orders are directed to locations your business can serve.
WooCommerce includes built-in shipping zones that allow store owners to define delivery regions using countries, states, and specific ZIP or postal codes. You can then assign shipping methods to each zone according to your delivery requirements.
how to configure ZIP-code-based shipping, add specific delivery areas, manage shipping rates, and test your settings to make sure customers see the correct shipping options at checkout.
What Is ZIP Code-Based Shipping in WooCommerce?
ZIP-code-based shipping is a way to control shipping availability according to a customer’s delivery ZIP code. Instead of offering the same shipping options to every customer, you can configure different delivery areas and assign suitable shipping methods to each one.
For example, imagine you operate an online store in California. You might offer free shipping to customers in selected local ZIP codes, standard shipping to other areas in the United States, and no delivery to locations outside your service area.
WooCommerce makes this possible through its shipping zone functionality.
This approach is useful for:
- Local businesses delivering within selected neighborhoods.
- Online stores offer different shipping rates by location.
- Businesses with limited delivery coverage.
- Stores that provide local pickup or regional delivery.
- Sellers who need to restrict shipping to certain ZIP codes.
The important thing is to configure your delivery regions carefully so customers receive accurate shipping options before completing their orders.
How WooCommerce Shipping Zones Work
Before configuring ZIP-code-based delivery, it’s helpful to understand how WooCommerce shipping zones work.
A shipping zone is a geographical area where your store offers specific shipping methods. You can create zones for individual states, groups of states, countries, or selected ZIP codes.
Each shipping zone can have its own shipping methods, such as:
- Flat Rate: Charge a fixed shipping amount.
- Free Shipping: Offer delivery without an additional shipping charge when the configured conditions are met.
- Local Pickup: Allow customers to collect their orders.
WooCommerce matches a customer’s shipping address against your configured zones. Each customer matches only one zone, and WooCommerce uses the first matching zone in the list.
For this reason, more specific zones should generally appear above broader zones.
For example, if you have a local delivery zone for ZIP code 90210 and another zone covering the entire United States, place the local zone above the nationwide zone.
You can learn more about this behavior in the official WooCommerce shipping zones documentation.
Requirements Before Setting Up ZIP Code Shipping
Before making changes to your shipping configuration, check a few basic settings.
1. Confirm your store location
Open your WordPress dashboard and navigate to:
WooCommerce → Settings → General
Check your store address and the shipping location settings. Make sure your store is configured to sell and ship to the countries you intend to serve.
2. Check your shipping requirements
Decide which locations you want to deliver to. For example, you might want to serve selected ZIP codes in California, provide nationwide shipping, or restrict delivery to certain regions.
3. Plan your shipping rates
Determine whether you will offer free shipping, a fixed shipping fee, or different rates for different delivery areas.
Planning these details beforehand makes it easier to organize your shipping zones.
If you’re still configuring your store, review our guide to WooCommerce shipping settings to understand the available options.
How to Set Up WooCommerce Shipping by ZIP Code
Follow these steps to create shipping zones based on specific ZIP codes.
Step 1: Open WooCommerce Shipping Settings
Log in to your WordPress dashboard.
Navigate to:
WooCommerce → Settings → Shipping → Shipping Zones
This section contains your existing shipping zones and lets you create new delivery areas.
If you haven’t configured shipping before, you may see the default Rest of the world zone.
Step 2: Create a New Shipping Zone
Click the Add Zone button.
Enter a descriptive name for your new zone.
For example:
- California Local Delivery
- New York Delivery Area
- Selected ZIP Code Shipping
- Local Free Shipping
Next, select the appropriate country or region for your delivery area.
For a US-based store, select the United States and narrow the delivery area using ZIP codes.
Click the option labeled Limit to specific ZIP/postcodes.
Step 3: Add Specific ZIP Codes
After selecting the region, enter the ZIP codes where you want to offer shipping.
WooCommerce allows you to add individual ZIP codes, numeric ranges, and wildcard patterns.
For example:
- 90210 – Matches a specific ZIP code.
- 10001 – Matches another specific ZIP code.
- 90210…90299 – Defines a numerical ZIP code range.
- 902* – Matches ZIP codes beginning with 902.
Enter each ZIP code or pattern on a separate line.
Make sure the codes match the areas where your business can actually deliver. Avoid adding ZIP codes simply because they are near your business location.
Important: WooCommerce supports postcode wildcards, but wildcard patterns cannot be used as the start or end of a numeric range.
Step 4: Add Shipping Methods to the Zone
Once you’ve added the ZIP codes, scroll to the Shipping Methods section.
Click Add Shipping Method.
WooCommerce provides several built-in options:
Flat Rate
Choose Flat Rate if you want to charge a fixed shipping fee.
For example, you could charge $5.99 for orders delivered to a selected local ZIP code group.
Free Shipping
Choose Free Shipping if you want to offer free delivery. Depending on your configuration, you can require a minimum order amount or other conditions.
Local Pickup
Choose Local Pickup if customers can collect orders from your store or another designated collection location.
Select the shipping method that suits your business, configure its settings, and save your changes.
Step 5: Create Additional ZIP Code Shipping Zones
If your store serves multiple delivery areas, you can create additional zones.
For example:
| Shipping zone | ZIP code or region | Shipping method |
| Local Delivery | 90210 | Free Shipping |
| Regional Delivery | Selected California ZIP codes | Flat Rate |
| Nationwide Shipping | United States | Standard Flat Rate |
This structure lets you offer different delivery options depending on the customer’s location.
Remember to arrange the zones from the most specific area to the broadest area. Otherwise, a customer may match a broader zone before reaching the intended local zone.
Step 6: Save and Review Your Shipping Configuration
After adding your ZIP codes and shipping methods, click Save Changes.
Return to the shipping zones list and review the configuration.
Check that:
- Each zone has the correct country or region.
- ZIP codes are entered correctly.
- The appropriate shipping methods are enabled.
- More specific zones appear above broader zones.
- Your general shipping coverage is configured correctly.
Your store is now configured to offer shipping options according to the ZIP codes assigned to each zone.
How to Set Different Shipping Rates by ZIP Code
Sometimes, a business needs more than one delivery rate.
For example, a store might offer free shipping in nearby areas, charge a standard fee for regional orders, and use a higher rate for distant destinations.
You can manage these differences by creating separate shipping zones and assigning different Flat Rate methods to them.
For example:
| Delivery area | Shipping rate |
| Local ZIP codes | Free |
| Regional ZIP codes | $5.99 |
| Other supported US locations | $9.99 |
These are illustrative rates, not recommended market prices.
If your shipping requirements depend on product weight, dimensions, cart contents, or carrier-calculated rates, you may need an appropriate shipping extension rather than relying only on standard shipping zones.
How to Restrict WooCommerce Shipping to Specific ZIP Codes
If your business only delivers to selected locations, you can configure shipping zones to limit available delivery areas.
First, create a shipping zone containing the ZIP codes you serve. Add the appropriate shipping methods to that zone.
Next, review your broader shipping zones.
If you do not want to deliver outside your selected ZIP codes, make sure broader zones do not unintentionally offer shipping to excluded areas.
For example, if your store only delivers to selected California ZIP codes, avoid enabling a nationwide shipping method that would also make delivery available elsewhere in the United States.
Test both supported and unsupported addresses before publishing the configuration.
How to Test ZIP Code Shipping at Checkout
Testing is an important part of configuring WooCommerce shipping. Even when your zones appear correctly in the dashboard, customers may experience problems if the configuration is incomplete or overlapping.
Follow these checks:
- Add a physical product to your cart.
- Open the cart or checkout page.
- Enter a supported US shipping address and ZIP code.
- Check whether the expected shipping methods appear.
- Test another ZIP code assigned to a different zone.
- Enter a ZIP code outside your delivery coverage.
- Confirm that unavailable shipping options are not displayed.
Also test different products and cart combinations if your store uses shipping classes or additional shipping extensions.
WooCommerce provides shipping debug tools that can help identify which shipping zone is matching a customer’s address.
If a customer sees the wrong shipping rate, check the entered address, zone order, and any overlapping ZIP-code rules.
Common WooCommerce ZIP Code Shipping Problems
1. Customers cannot see shipping methods
Check whether the entered ZIP code belongs to a configured shipping zone. Also confirm that the zone has at least one enabled shipping method.
2. Customers see the wrong shipping rate
Review your shipping zone order. A broader zone placed above a more specific zone may match the customer first.
3. ZIP code patterns are not working
Check for typing mistakes and unsupported wildcard combinations. Use individual ZIP codes or supported numeric ranges when appropriate.
4. Shipping is available in unwanted locations
Review your broader shipping zones and the Rest of the world zone. Make sure they do not provide unintended delivery coverage.
5. Shipping options do not update as expected
Check your checkout configuration, shipping extensions, caching, and shipping debug information. Test with a fresh cart and a complete shipping address.
For more troubleshooting advice, consult the official WooCommerce shipping troubleshooting guide.
Best Practices for Managing ZIP Code-Based Shipping
A well-organized shipping configuration can help reduce delivery confusion and checkout problems.
Keep these practices in mind:
- Review your supported ZIP codes regularly.
- Place local and regional zones above nationwide zones.
- Use clear names for every shipping zone.
- Display accurate shipping charges before customers place orders.
- Test your shipping configuration after changing delivery rules.
- Keep your delivery coverage consistent with your actual business operations.
- Review shipping-related checkout behavior on desktop and mobile devices.
Good shipping configuration also supports better WooCommerce cart functionality, because customers can see the delivery options and costs applicable to their shipping address before completing an order.
Conclusion
Setting up WooCommerce shipping by ZIP code gives store owners more control over delivery availability and shipping options. By creating specific shipping zones, adding the correct ZIP codes, configuring suitable shipping methods, and testing checkout behavior, you can build a delivery setup that better matches your business requirements.
Take time to review your shipping zones whenever your delivery coverage changes. A well-maintained configuration helps customers understand their available delivery options and makes the checkout process more predictable.
