2017 © Pedro Peláez
 

magento2-module module-google-address-lookup

Provides an address lookup service on a Magento 2 store powered by the Google Places API

image

ctidigital/module-google-address-lookup

Provides an address lookup service on a Magento 2 store powered by the Google Places API

  • Tuesday, June 19, 2018
  • by chevli
  • Repository
  • 16 Watchers
  • 31 Stars
  • 872 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 13 Forks
  • 6 Open issues
  • 7 Versions
  • 181 % Grown

The README.md

Google Address Lookup for Magento 2

The Google Address Lookup module makes use of the Google Places API Web Service to provide the following functionality to your Magento 2 store., (*1)

  1. Minimise address input errors by providing a post-code lookup service.
  2. Reduce the number of visible input fields on the checkout by hiding city, state, street 1, street 2 and post-code fields.
  3. Provide a manual address input override which will display the hidden fields.

Note: The Google Places API offers 150,000 FREE daily lookup requests for users that validate their account and add billing information. If you require more than 150,000 lookup requests daily then you can register to a paid plan. See Usage Tiers & Pricing, (*2)

Configuration

After installing the module you will need to enable the module and generate a Key for the Google Places API Web Service in the Google Console (see further reading)., (*3)

Enabling the Module:

Store->Configuration->CtiDigital->Google Autocomplete, (*4)

Config Value Notes
Enable/Disable if module is enabled then checkout configuration will be overridden and Google API is attached
API Key Enter your Google Places API Web Service key (see further reading)
Address Lookup

Once enabled, the post-code lookup service will be used on:, (*5)

  • Guest Checkout
  • Registered Customer Checkout (if they are adding a new address)
  • My Account Address Management

Further Reading

Google Places API Google Places API Examples, (*6)

Implementation Details

  • Configuration of checkout fields is in etc/frontend/di.xml This configuration is processed in CtiDigital/GoogleAddressLookup/Block/Checkout/LayoutProcessor.php
  • Google Address fields are mapped in etc/frontend/di.xml and processed in CtiDigital/GoogleAddressLookup/Block/Js/GoogleApi.php. It will allow for easy third-party customizations like adding custom fields that should be also autocompleted.
  • Javascript modules are written in es6 and compiled with gulp using babel. Src and dist files are in CtiDigital/GoogleAddressLookup/view

Screenshots

Configuration Configuration Configuration Configuration, (*7)

The Versions

19/06 2018

dev-master

9999999-dev

Provides an address lookup service on a Magento 2 store powered by the Google Places API

  Sources   Download

MIT

The Requires

  • php 7.*
  • magento/product-community-edition ^2.1

 

by Bartosz Herba

19/06 2018

1.2.0

1.2.0.0

Provides an address lookup service on a Magento 2 store powered by the Google Places API

  Sources   Download

MIT

The Requires

  • php 7.*
  • magento/product-community-edition ^2.1

 

by Bartosz Herba

16/05 2018

dev-fix-dependencies

dev-fix-dependencies

Provides an address lookup service on a Magento 2 store powered by the Google Places API

  Sources   Download

MIT

The Requires

  • php 7.*

 

by Bartosz Herba

28/03 2018

1.1.0

1.1.0.0

Provides an address lookup service on a Magento 2 store powered by the Google Places API

  Sources   Download

MIT

The Requires

  • php 7.*
  • magento/product-community-edition ^2.1

 

by Bartosz Herba

01/03 2018

dev-develop

dev-develop

Provides an address lookup service on a Magento 2 store powered by the Google Places API

  Sources   Download

MIT

The Requires

  • php 7.*
  • magento/product-community-edition ^2.1

 

by Bartosz Herba

01/03 2018

dev-fix-field-order

dev-fix-field-order

Provides an address lookup service on a Magento 2 store powered by the Google Places API

  Sources   Download

MIT

The Requires

  • php 7.*
  • magento/product-community-edition ^2.1

 

by Bartosz Herba

07/11 2017

1.0.0

1.0.0.0

Provides an address lookup service on a Magento 2 store powered by the Google Places API

  Sources   Download

MIT

The Requires

  • php 7.*
  • magento/product-community-edition ^2.1

 

by Bartosz Herba