No estimate returned with Commerce 2.37+ (Address 2.x)

Created on 14 June 2024, 6 months ago
Updated 28 June 2024, 6 months ago

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.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States TomTech

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024