承接 ctidigital/module-google-address-lookup 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ctidigital/module-google-address-lookup

Composer 安装命令:

composer require ctidigital/module-google-address-lookup

包简介

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

README 文档

README

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

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).

Enabling the Module:

Store->Configuration->CtiDigital->Google Autocomplete

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:

  • 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

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

统计信息

  • 总下载量: 11.3k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 51
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 51
  • Watchers: 13
  • Forks: 26
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固