No Shipping Rates Without ZIP/Post Code on Magento
Enable shipping rates display without customer ZIP/Post Code entry
Table of Contents
Overview
This guide explains why shipping rates might not appear in Magento until a customer enters their ZIP or Post Code and provides a solution to modify this behavior. 😊
Issue
Shipping rates aren't displayed in Magento 2 when customers haven't entered a ZIP or Post Code. This occurs even with carriers in ShipperHQ that don't require ZIP or Post Codes.
Symptoms
- No rates appear if the customer hasn't entered a ZIP or Post Code
- Rates appear when the customer enters a ZIP or Post Code
- If the ShipperHQ Logger is enabled, the message "Ignoring rate request Configuration settings are to ignore requests as zip code is empty" appears in the logs instead of a rate request and response
Cause
Most carriers require a ZIP or Post Code to return rates. To minimize invalid shipping quote requests, the ShipperHQ Magento 2.x extension will by default not send a rate request unless a ZIP or Post Code is provided.
Resolution
To change this default setting, follow these steps in your Magento 2 Admin Panel:
- Navigate to
Stores > Configuration > Sales > Shipping Methods > ShipperHQ > Advanced Settings
- Change the "Require Meaningful Address To Request Rates" setting from "Yes" to "No"
- Save the configuration
After making this change, the ShipperHQ extension will request rates regardless of whether a ZIP or Post Code is provided.
💡 Note: Most live-rate carriers require a ZIP or Post Code for destination addresses. It's highly recommended to keep the "Require Meaningful Address To Request Rates" on its default setting if you use live-rate carriers. If using only defined carriers (like table rate, free shipping, or flat rate), disable this option only if ZIP or Post Codes are not needed in the Zones associated with those carriers.