vendic/hyva-checkout-google-address-autocomplete
Composer 安装命令:
composer require vendic/hyva-checkout-google-address-autocomplete
包简介
Hyvä checkout compatibility module for vendic/magento2-google-address-autocomplete.
README 文档
README
Hyvä checkout compatibility module for vendic/magento2-google-address-autocomplete.
google-address-autocomplete.mp4
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.
composer require vendic/hyva-checkout-google-address-autocomplete
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:
n98-magerun2 config:set --lock-env google_autocomplete/general/api_key $your_api_key
There is no disable/enable configuration. To disable the module, simply remove the API key from the configuration.
Features
- Autocomplete for billing address in the Hyvä checkout
- Autocomplete for shipping address in the Hyvä checkout
- Autocomplete for adding a new address as a logged in user (see #5)
- Works on the company field and street 0. To add additonal fields, check
\Vendic\HyvaCheckoutGoogleAddressAutocomplete\ViewModel\AutoCompleteSelectors - Housenumber validation to check if the housenumber contains digits.
- 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.
vendic/hyva-checkout-google-address-autocomplete 适用场景与选型建议
vendic/hyva-checkout-google-address-autocomplete 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 38.9k 次下载、GitHub Stars 达 14, 最近一次更新时间为 2023 年 11 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 vendic/hyva-checkout-google-address-autocomplete 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vendic/hyva-checkout-google-address-autocomplete 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 38.9k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 20
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-11-03