aplace / addressautocomplete

使用APlace.io服务的结账表单中的地址自动完成Magento 2模块

1.0.0 2023-07-19 12:46 UTC

This package is auto-updated.

Last update: 2024-09-24 10:29:49 UTC


README

APlace自动完成地址的Magento 2模块

此模块通过使用APlace.io服务在结账表单中添加地址自动完成功能。

安装

在安装之前,你可能想

备份你的数据库。

启用维护模式

bin/magento maintenance:enable

运行此命令以更新你的项目中扩展的名和版本。

composer require aplace/addressautocomplete:1.0.0

启用并配置扩展。

bin/magento module:enable Aplace_AddressAutocomplete --clear-static-content

设置和清理缓存

在你的Magento安装目录中运行以下命令

php bin/magento setup:di:compile php bin/magento setup:upgrade php bin/magento cache:clean

禁用维护模式

bin/magento maintenance:disable

配置

• 访问https://aplace.io/en/auth/sign-up 在Aplace.io上注册

• 在APlace仪表板上,在https://aplace.io/en/dashboard/tokens 创建API密钥和加密密钥。

• 要配置模块,请进入后端,点击内容 / Aplace地址自动完成 / 配置链接。

• 启用实时模式。

• 在Prestashop模块配置页面表单的字段中复制并粘贴API密钥和加密密钥。

• 如果你更改了结账表单,检查“地址”、“城市”、“邮编”、“国家”和“州”输入框的名称,并在配置表单中复制/粘贴名称值。

• 点击保存按钮。

注意

在Magento 2.4.6上测试