postcode-nl / PostcodeNl_Api_Magento2

A Magento 2 plugin that implements the Postcode.nl international address API
https://developer.postcode.eu/documentation/
BSD 2-Clause "Simplified" License
10 stars 13 forks source link

Issue with overseas departments of France #63

Closed davekleijn closed 1 year ago

davekleijn commented 2 years ago

In the backend of Magento it is possible to change the allowed countries for a website. These can be changed under Stores -> Configuration -> General -> General -> Country Options -> Allow Countries.

The list used for this config field also contains overseas departments of France like Guadeloupe, Martinique and Mayotte. Therefore it is normally possible to disallow shipping to one of these departments.

Unfortunately, even when the departments are not allowed, it is not working when using the PostcodeNL module. When I try to find an address for one of these departments the API will return a correct address and this is used for filling all the field inside the checkout.

Expected result

Actual result

JerrySmidt commented 1 year ago

Validation for the French overseas territories was added in release 3.1.9.