I am trying to force the cart shipping estimate to use postcode and country. Only country seems to be required by default, and postcode is optional with the field even greyed. Here is an example image of Change Address fields. How do I require both country and postcode? Note – State and city are not required for my use case.

I need postcode required because all major carriers require destination postcode to use their API. For example, USPS domestic method requires “ZipDestination”. I realize that postcode can be set to required on checkout. But I’d like to avoid having the cart shipping estimate much different than the actual checkout shipping quote. If making postcode field required in cart shipping calculator is not possible, can a message display saying to populate the fields before showing shipping estimate results in the cart?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.