Implementation of the Postcode NL API with the Magento 2 Experius-Postcode-NL module for Rapidez.
Make sure the Magento 2 Experius-Postcode-NL module has been installed and configured in your Magento installation.
composer require rapidez/experius-postcode-nl
And register the Vue component in resources/js/app.js
:
Vue.component('postcode-nl', require('Vendor/rapidez/postcode-nl/resources/js/components/ExperiusPostcodeNL.vue').default)
If you haven't published the Rapidez views yet, publish them with:
php artisan vendor:publish --provider="Rapidez\Core\RapidezServiceProvider" --tag=views
Replace in resources/views/vendor/rapidez/checkout/partials/form.blade.php
the postcode, street, housenumber and city fields for:
@include('postcode-nl::checkout/experius-postcode-nl')