team23 / module-google-address-lookup
使用Google Place Autocomplete API自动补全您的Magento 2店铺中的地址字段。
1.0.0
2024-09-16 14:01 UTC
Requires
- php: ^8.1
- magento/framework: ^103.0
- magento/module-backend: ^102.0
- magento/module-checkout: ^100.4
- magento/module-config: ^101.2
- magento/module-csp: ^100.4
- magento/module-customer: ^103.0
- magento/module-store: ^101.1
- magento/module-ui: ^101.2
- team23/module-core: ^1.1
README
使用Google Place Autocomplete API自动补全您的Magento 2店铺中的地址字段。
安装
通过composer进行安装
composer require team23/module-google-address-lookup
现在使用bin/magento setup:upgrade
注册模块。
配置
要启用扩展并在Magento后端设置API密钥,请转到系统 > 配置 > TEAM23 > Google Address Lookup
。您还可以限制自动补全API到所需的国家。
在启用扩展并使用有效的API密钥后,模块将在客户账户的地址编辑/创建以及结账时的收货和账单地址中工作。在(第一个)街道字段中输入时,将弹出自动补全。
可扩展性
扩展开发者可以与Team23_GoogleAddressLookup
模块交互。有关更多关于Magento扩展机制的详细信息,请参阅Magento插件。
Magento依赖注入机制允许您覆盖Team23_GoogleAddressLookup
模块的功能。