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.
Issue fork commerce_cart_estimate-3454550
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
Comment #4
tomtech commented