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

2.1.1 2024-12-03 13:46 UTC

This package is auto-updated.

Last update: 2025-01-03 14:05:34 UTC


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
    />