Adds autocompletion for addresses to the checkout page. Multiple countries are supported using official postal data via the Postcode.eu API.
This module has been created by Postcode.nl and Flekto.
A Postcode.eu account is required. Testing is free. After testing you can choose to purchase a subscription.
- Install this component using Composer:
$ composer require postcode-nl/api-magento2-module- Upgrade, compile & clear cache:
$ php bin/magento setup:upgrade
$ php bin/magento setup:di:compile
$ php bin/magento cache:flush- Go to Stores -> Configuration -> Sales -> Postcode.eu Address API
- 'Change address fields position' to 'no'
- Go to Stores -> Configuration -> Sales -> OneStepCheckout
- The following fields need to be enabled for the billing and shipping fields:
- street.0
- postcode
- city
- region
- Add the following fields to the billing and shipping fields:
- address_autofill_nl.postcode
- address_autofill_nl.house_number
- address_autofill_nl.house_number_select
- address_autofill_intl
- address_autofill_formatted_output
- Optional: you may need to apply some custom CSS to display the fields correctly. You may set the region field to hidden.
- The following fields need to be enabled for the billing and shipping fields:
The code is available under the Simplified BSD License, see the included LICENSE file.
International autocomplete:
Dutch address by postcode and house number:
Option to show formatted output:


