rapidez / experius-postcode-nl
Rapidez Experius Postcode NL implementation
Installs: 3 366
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 3
Open Issues: 0
Language:JavaScript
Requires
- php: ^8.0|^8.1|^8.2
- rapidez/core: ^2.8|^3.0
README
Implementation of the Postcode NL API with the Magento 2 Experius-Postcode-NL module for Rapidez.
Requirements
Make sure the Magento 2 Experius-Postcode-NL and Mage2-Module-Experius-PostcodeGraphQl modules have been installed and configured in your Magento installation.
Installation
composer require rapidez/experius-postcode-nl
If you haven't published the Rapidez views yet, publish them with:
php artisan vendor:publish --provider="Rapidez\Core\RapidezServiceProvider" --tag=views
Add a event listener on the postcode and housenumber fields:
<x-rapidez::input
name="{{ $type }}_postcode"
label="Postcode"
v-model.lazy="checkout.{{ $type }}_address.postcode"
+ v-on:change="$root.$nextTick(() => window.app.$emit('postcode-change', checkout.{{ $type }}_address))"
required
/>