Logging WooCommerce shipping rates to find where they disappear

Leader ●1 ●14 ●106
calendar_today • schedule1 min read
— Originally published at amanurrahman.com

When a store reports "No shipping options were found," the first useful question is where in the pipeline the rates vanish. Zones and methods are only one possibility. A plugin can filter them out, or the rates can exist and fail to display.

WooCommerce passes the final list of rates through the woocommerce_package_rates filter. A small logger there tells you immediately which side of the problem you are on. Run it on staging with WP_DEBUG_LOG enabled:

add_filter( 'woocommerce_package_rates', function ( $rates, $package ) {
    error_log( 'Shipping rates found: ' . count( $rates ) . ' for ' . $package['destination']['country'] . ' ' . $package['destination']['postcode'] );
    return $rates;
}, 999, 2 );

How to read the result:

  • Zero rates: the problem is upstream. Check zones, enabled methods, postcode rules, free shipping conditions, product weight for carrier plugins, and the carrier plugin's own log.
  • One or more rates, but the customer sees nothing: the problem is display. Suspect page caching on cart or checkout, a theme override, or a plugin that does not support the checkout type (shortcode or block).

Two tips that save time:

  1. Turn on the shipping debug mode in WooCommerce settings. It bypasses cached rates and shows which zone matched.
  2. Change one thing at a time and clear the WooCommerce transients between tests, otherwise a stale result can make a real fix look like it did nothing.

Remove the logger when you finish. If you want the full non-developer checklist, with a symptom and fix table, I put it here: https://amanurrahman.com/blog-post/woocommerce-no-shipping-options-available-fix

🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

WooCommerce Performance Tuning (2026 Guide)

ApogeeWatcherverified - Jul 10

SEO Rates Philippines 2026: Costs & Packages | FloxoLab

floxolab - Oct 18

Just completed another large-scale WordPress migration — and the client left this

saqib_devmorph - Apr 7

How AI Is Changing Web Development, and What Developers Still Need to Understand

Daniel Decker - Nov 10

Cisco's Amy Chang: A Model's "Passport" Doesn't Tell You Where It Actually Came From

Tom Smithverified - Aug 27
chevron_left
4.4k Points • 121 Badges
Bangladesh • amanurrahman.com
72Posts
9Comments
14Connections
WordPress & WooCommerce Developer with 14+ years of experience building, optimizing, and scaling onl... Show more

Related Jobs

View all jobs →

Commenters (This Week)

3 comments
3 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!