Problem/Motivation

If this module is used with Address 2.x, which is included with Commerce 2.37+, no estimate is returned, unless the Shipping Address state/province is the first in that country's list. e.g. For the US, only estimates for AL are returned.

This is because we attempt to look up the state/province (administrative_area/subdivision) that maps to the Postal Code, but Addressing 2.x, removed the postal_code_pattern it previously provided. Since the method returns NULL for the RegEx, it is always matching on the first record.

Since Country+PostCode is sufficient to get quotes, we can remove that logic.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

TomTech created an issue. See original summary.

  • e08d547f committed on 2.x
    Issue #3454550 by TomTech: No estimate returned with Commerce 2.37+ (...
tomtech’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.