thelia/addressautocomplete-module

1.0.0 2020-11-20 15:31 UTC

This package is auto-updated.

Last update: 2024-09-21 00:49:37 UTC


README

此模块根据 'address1' 字段添加地址的自动完成功能

安装

手动

  • 将模块复制到 <thelia_root>/local/modules/ 目录中,并确保模块名称为 AddressAutoComplete。
  • 在您的 thelia 管理面板中激活它

Composer

将其添加到您的主 thelia composer.json 文件中

模板工具

安装

转到您的主题模板文件夹,然后运行 npm install 以获得生成 'dist' 文件夹的所有工具。

对于每个 css 和/或 js 的更改,您都需要运行 ./node_modules/gulp/bin/gulp.js

composer require thelia/address-auto-complete-module:~1.0

使用方法

要使用此模块,您需要禁用 ZipCode 模块,并在配置模块中定义 Google Maps API 密钥。

钩子

main.javascript-initialization 用于添加javascript

main.stylesheet 用于添加样式表

main.after-javascript-include 用于添加javascript变量