No Shipping Rates Without ZIP/Post Code on Magento

Issue

No shipping rates are shown on Magento 2 until a customer enters their ZIP or Post Code even though there are carriers set up in ShipperHQ which do not require ZIP or Post Codes.

Symptoms

  • No rates are shown if the customer has not entered a ZIP or Post Code
  • Rates are shown if the customer has entered a ZIP or Post Code
  • If the ShipperHQ Logger is enabled, you see the message “Ignoring rate request Configuration settings are to ignore requests as zip code is empty” instead of a rate request and response in the logs

Cause

Most carriers require a ZIP or Post Code in order to return rates. Therefore, in order to reduce the number of invalid shipping quote requests to ShipperHQ, the ShipperHQ Magento 2.x extension will by default not send a rate request unless a ZIP or Post Code has been provided.

Resolution

This default setting can be changed in the ShipperHQ extension configuration in your Magento 2 Admin Panel under Stores > Configuration > Sales > Shipping Methods > ShipperHQ > Advanced Settings. Change the “Require Meaningful Address To Request Rates” setting from “Yes” to “No.” Then, save the config.

After making this change, the ShipperHQ extension will request rates whether or not a ZIP or Post Code has been provided.

Note Since nearly all live-rate carriers require a ZIP or Post Code for most, if not all, destination addresses, it’s highly recommended that you leave the “Require Meaningful Address To Request Rates” on its default setting if you use live-rate carriers. If, instead, you use only custom-defined carriers (table rate, free shipping, flat rate, etc.) you should only turn this option off if you do not use ZIP or Post Codes in the Zones associated with those carriers.

Was this doc helpful?