mastersoft / address-widget
一个针对结账和客户地址的 Magento 2 地址自动补全模块
README
Mastersoft 地址自动补全扩展或模块,适用于 Magento2。
版本
- v1.0.x 与 Magento 2.2 兼容(已测试与 Magento 2.2.4)
- v1.1.x 与 Magento 2.3 兼容(已测试与 Magento 2.3.4 和 2.2.4)
安装
前往您的 Magento2 主目录(通常位于 /var/www/html
目录)。
Composer 安装(推荐)
确保已安装 git:apt-get install git
。
/var/www/html# cp composer.json composer.json.old composer require mastersoft/address-widget php bin/magento module:enable Mastersoft_AddressWidget php bin/magento setup:upgrade
如果安装成功,您应在 /var/www/html/vendor/mastersoft/address-widget/
目录中找到模块源代码。
验证 Mastersoft_AddressWidget
模块是否已正确安装:php bin/magento module:status
。它应列在“已启用模块”中。
接下来是配置 Mastersoft 地址配置。
更新现有 Composer 安装
例如,更新到 Mastersoft Address Widget v1.0.2。
composer require mastersoft/address-widget:1.0.2 --no-update composer update php bin/magento setup:upgrade
(可选)按照附加步骤 - 仅限生产模式中的步骤操作。
如果页面为空或管理员店铺或店铺主页遇到权限错误,请参阅安装故障排除。
手动安装
- 在
ZIP
目录中下载 zip 文件。 - 将其解压缩到您的 Magento2 主目录中,它将与现有目录和文件合并。
您应在 /var/www/html/app/code/Mastersoft/AddressWidget/
目录中找到模块源代码。
/var/www/html# cp composer.json composer.json.old php bin/magento module:enable Mastersoft_AddressWidget php bin/magento setup:upgrade
验证 Mastersoft_AddressWidget
模块是否已正确安装:php bin/magento module:status
。它应列在“已启用模块”中。
接下来是配置 Mastersoft 地址配置。
附加步骤 - 仅限生产模式
这些是在 php bin/magento setup:upgrade
之后执行的附加步骤 - 仅限 生产
模式。
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy en_AU en_US
安装故障排除
如果在店铺主页出现空白页面或遇到权限错误或其他错误。
php bin/magento cache:clean php bin/magento cache:flush chown -R :www-data var/cache chmod -R 777 app/ var/ pub/ generated/ rm -rf var/cache/* var/page_cache/*
配置
在您的店铺的 Magento2 管理控制台:转到 商店
-> 配置
-> 服务
-> Mastersoft 地址
。
在此处获取您的免费许可证密钥。
要配置小部件选项,以下是可用的完整功能选项列表。
有关更多详细信息,请参阅用户指南中的配置。
禁用/启用模块
有两种方法可以禁用/启用此模块
- 在Mastersoft 地址配置中:
启用模块
字段 OR - 在 Magento 命令中
// Disable module php bin/magento module:disable Mastersoft_AddressWidget --clear-static-content // Enable module php bin/magento module:enable Mastersoft_AddressWidget php bin/magento setup:upgrade php bin/magento module:status
卸载
Composer 卸载
此操作仅适用于使用 Composer 安装的模块。
php bin/magento module:disable Mastersoft_AddressWidget --clear-static-content php bin/magento module:uninstall Mastersoft_AddressWidget -r -c php bin/magento setup:upgrade composer remove mastersoft/address-widget
手动卸载
php bin/magento module:disable Mastersoft_AddressWidget --clear-static-content php bin/magento setup:upgrade // If was installed using Composer rm -rf vendor/mastersoft // If was installed manually rm -rf app/code/Mastersoft
从 Magento2 数据库中删除模块数据
DELETE FROM setup_module WHERE module='Mastersoft_AddressWidget'; DELETE FROM core_config_data WHERE path like 'Mastersoft_AddressWidget/%';
从 app/etc/config.php
文件中删除 Mastersoft_AddressWidget
模块引用。
php bin/magento setup:upgrade
php bin/magento cache:flush
用户指南
有关更多详细文档,请参阅此用户指南。
支持
如果您对此模块有任何疑问或问题,请在GitHub上提交一个issue。或者,您可以通过以下电子邮件或网站联系我们。
电子邮件:customer.support@gbgplc.com
主页:https://www.mastersoftgroup.com/
版权
© 2023 Mastersoft