Skip to content

WordPress WooCommerce shipping zone configuration pitfalls

WordPress WooCommerce shipping zones use first-match logic that surprises operators. The pitfalls — zone ordering, fallback zones, and the postal-code overlap that quietly breaks rates.

WordPress WooCommerce shipping zones look simple in the UI. Pick a region, add shipping methods, set rates. The pitfall is the matching logic: zones are evaluated in order, the first match wins, and the “Locations not covered by your other zones” zone is the final fallback. A misordered zone list silently routes Toronto orders through the EU zone, and the operator only notices when a customer pays for “Standard EU shipping” on a domestic Canada order.

What’s happening

A WooCommerce shipping zone is defined by:

  1. Zone regions. Countries, states/provinces, and (optionally) postal-code ranges.
  2. Zone methods. Flat rate, free shipping, local pickup, or a carrier integration (USPS, UPS, FedEx, Purolator, Canada Post).
  3. Zone order. A numeric zone_order in wp_woocommerce_shipping_zones that determines evaluation sequence.

When a customer reaches checkout, WooCommerce walks the zones in order, finds the first that matches the shipping address, and offers the methods of that zone. If none match, the “Locations not covered” zone fires — typically empty, which surfaces as “no shipping options available.”

The five common pitfalls:

  • Catch-all zone listed first. Someone created a “Worldwide” zone with all countries and put it at the top. Every order matches it before reaching the more specific zones.
  • Postal-code wildcard overlap. Two zones cover the same postal-code range with different rates. WooCommerce picks whichever has lower zone_order, but the operator expected the more specific to win.
  • Province / state forgotten. Zone covers Canada at the country level, but a Quebec-specific zone exists. If Quebec zone has higher zone_order, all Quebec orders ship at the Canada rate.
  • Free shipping rule misconfigured. Free shipping is supposed to apply over $100 subtotal, but is set to “Match shipping classes only” or “And cart subtotal,” which combine differently than expected.
  • Carrier rate not refreshing. Cached carrier rate (UPS, Canada Post) is stale. Customer sees a 2023 rate even though the carrier raised it in January.

How to verify

# List all zones with order
wp db query "SELECT zone_id, zone_name, zone_order FROM wp_woocommerce_shipping_zones ORDER BY zone_order"

# Locations for each zone
wp db query "SELECT zl.zone_id, z.zone_name, zl.location_code, zl.location_type
  FROM wp_woocommerce_shipping_zone_locations zl
  JOIN wp_woocommerce_shipping_zones z ON zl.zone_id=z.zone_id
  ORDER BY zl.zone_id"

# Methods for each zone, with enabled flag
wp db query "SELECT zone_id, instance_id, method_id, is_enabled
  FROM wp_woocommerce_shipping_zone_methods
  ORDER BY zone_id, method_order"

# Carrier rate cache (Canada Post / UPS / FedEx)
wp db query "SELECT option_name, option_value FROM wp_options
  WHERE option_name LIKE '%shipping%rate%cache%' LIMIT 10"

# Test the shipping calculator from CLI
wp wc shop_order list --status=completed --per_page=5 --fields=id,shipping_total,shipping_method

# What method was used for recent orders, by country/province?
wp db query "SELECT
  pm_country.meta_value AS country,
  pm_state.meta_value AS state,
  pm_method.meta_value AS method,
  COUNT(*) AS n
  FROM wp_posts p
  LEFT JOIN wp_postmeta pm_country ON p.ID=pm_country.post_id AND pm_country.meta_key='_shipping_country'
  LEFT JOIN wp_postmeta pm_state ON p.ID=pm_state.post_id AND pm_state.meta_key='_shipping_state'
  LEFT JOIN wp_postmeta pm_method ON p.ID=pm_method.post_id AND pm_method.meta_key='_shipping_method_title'
  WHERE p.post_type='shop_order' AND p.post_date > NOW() - INTERVAL 30 DAY
  GROUP BY country, state, method ORDER BY n DESC LIMIT 50"

The last query reveals the truth: which zones and methods are actually firing for real orders. If you see Quebec orders billed under “Canada Standard” when you have a Quebec-specific zone, the zone ordering is wrong.

The fix

  1. Order zones from most specific to most general. Quebec before Canada, Canada before North America, North America before Worldwide. WooCommerce evaluates top to bottom. Use the drag handles in the zone list to reorder.
  2. Always have a fallback “Locations not covered” zone with at least one method. Even if it is “Contact us for shipping” (a flat-rate method named accordingly with a high cost to discourage selection). The default behavior on no-zone-match is “no shipping methods available,” which fails the checkout silently.
  3. Postal-code wildcards. Use the format H1A...H9Z for Quebec, M1A...M9Z for Toronto, etc. Lowercase works, but WooCommerce normalizes to uppercase. Be explicit about ranges. Avoid leaving postal-code field blank if the zone is supposed to be regional only — blank means the whole region.
  4. Free shipping rule audit. WooCommerce → Settings → Shipping → [Zone] → Free shipping → Edit. Check “Minimum order amount” and “Free shipping requires” carefully. The dropdown options:
    • “A valid free shipping coupon”
    • “A minimum order amount”
    • “A minimum order amount OR a coupon”
    • “A minimum order amount AND a coupon” “OR” vs “AND” is the most common misconfiguration.
  5. Flush carrier rate cache after a price update. UPS, FedEx, Canada Post integrations cache rate responses for 12 to 24 hours. After a carrier announces a rate change:
    wp transient delete --all  # nuclear; do during off-hours
    # Or, plugin-specific:
    wp option delete wc_shipping_rates_cache
  6. Test with the real shipping calculator. Set the WooCommerce test mode on, place test orders to each major destination (Quebec, Ontario, BC, US, EU), confirm the method shown matches the zone you expect. Without this you do not know if your zones work — you only know they pass code review.

For the broader checkout flow, pair with the WooCommerce checkout 504 article above and enterprise WordPress hosting operations.


Stack Harbor audits WordPress WooCommerce shipping configurations as part of enterprise WordPress hosting onboarding — the zone order, the fallback posture, and the carrier-rate refresh. If customers are seeing the wrong shipping price at checkout, we can find and fix the misorder.