Download the PHP package vendic/hyva-checkout-google-address-autocomplete without Composer
On this page you can find all versions of the php package vendic/hyva-checkout-google-address-autocomplete. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vendic/hyva-checkout-google-address-autocomplete
More information about vendic/hyva-checkout-google-address-autocomplete
Files in vendic/hyva-checkout-google-address-autocomplete
Package hyva-checkout-google-address-autocomplete
Short Description Hyvä checkout compatibility module for vendic/magento2-google-address-autocomplete
License MIT
Informations about the package hyva-checkout-google-address-autocomplete
Google Address Autocomplete for the Hyvä checkout
Hyvä checkout compatibility module for vendic/magento2-google-address-autocomplete.
Installation
This extension currently only supports PHP 8.1, while the Hyvä checkout is also compatible with PHP 7.4. Feel free to create a pull request if you want PHP 7.4 support.
Configuration
First, create your Google Maps API key. You can find instructions on how to do this here. Also make sure you have valid billing information added to your Google account.
Set your Google Maps API key in the Magento admin panel under Stores > Configuration > Vendic > Google Address Autocomplete
.
Or - even better - via the CLI:
There is no disable/enable configuration. To disable the module, simply remove the API key from the configuration.
Features
- [x] Autocomplete for billing address in the Hyvä checkout
- [x] Autocomplete for shipping address in the Hyvä checkout
- [ ] Autocomplete for adding a new address as a logged in user (see #5)
- [x] Works on the company field and street 0. To add additonal fields, check
\Vendic\HyvaCheckoutGoogleAddressAutocomplete\ViewModel\AutoCompleteSelectors
- [x] Housenumber validation to check if the housenumber contains digits.
- [x] Reload autocomplete JS by triggering a browser event named
re-init-google-autocomplete
. This can be useful when you are removing/adding fields dynamically.
Customizations
Field mapping
The field mapping (google address response mapped to Hyvä checkout form inputs) can be modified using di.xml.
See etc/frontend/di.xml
for the default mapping, which you can change edit in your own di.xml.
Input selectors
The input selectors (the fields that trigger the autocomplete dropdown ) can be modified using di.xml. By default, the autocomplete is triggered for street 0 and company.
All versions of hyva-checkout-google-address-autocomplete with dependencies
hyva-themes/magento2-hyva-checkout Version ^1.1
vendic/magento2-google-address-autocomplete Version ^1.5