Checkout Address Autocomplete Suggest - Not compatible with Additional fields

Checkout Address Autocomplete Suggest - Not compatible with Additional fields

autoaddress
Shopify Partner
1 0 0

Hello,

We are working on an extension that uses the purchase.address-autocomplete.suggest API.

 

We have this working normally where the form is using AddressLine1.

 

However, when a country such as Germany is selected and Additional Address fields are enabled the primary address field is Street.

The Magnifying glass icon appears in the Street field to indicate Autocomplete suggestions are enabled but the console throws an error:
AddressAutocompleteError: Unsupported Address Autocomplete field: streetName

Referring to the documentation for the Address Autocomplete Suggest API:

https://github.com/Shopify/ui-extensions/blob/unstable/packages/ui-extensions/src/surfaces/checkout/...

The Target interface has a Field property is of a type 'address1' | 'zip' but it is getting passed the 'street' value thus causing the error.

 

Is there any way around this, perhaps an undocumented configuration parameter we can use in the toml file?

 

 

 

Replies 0 (0)