定制 vendic/hyva-checkout-google-address-autocomplete 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

vendic/hyva-checkout-google-address-autocomplete

最新稳定版本:1.4.0

Composer 安装命令:

composer require vendic/hyva-checkout-google-address-autocomplete

包简介

Hyvä checkout compatibility module for vendic/magento2-google-address-autocomplete

README 文档

README

Coding Standard

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.

统计信息

  • 总下载量: 25.55k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 2
  • Forks: 6
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固