fptcorp / recommendation
Magento 2 模块,用于连接 DMP 推荐引擎
Requires
- php: ~5.6.5|7.0.2|7.0.4|~7.0.6
- magento/framework: 100.1.*
This package is not auto-updated.
Last update: 2024-09-29 02:54:51 UTC
README
感谢您尝试使用 FPT 推荐模块!此模块将显著提高您的销售额。当访客获得相关报价和额外的交叉和 upsell 推荐时,可以促成更多交易。
安装和验证参考模块
您可以通过以下任何一种方式安装参考模块:
- 将代码复制到您的
<your Magento install dir>/app/code/<VendorName>/<ModuleName>
目录。
此方法需要一些手动任务,但很简便。 - 使用
composer require
。
通过复制代码安装模块
任何 Magento 模块都需要在 <your Magento install dir>/app/code
下的特定目录结构。结构开始于
<VendorName>/<ModuleName>
参考模块需要以下结构
FPTCorp/Recommendation
将模块添加到您的 Magento 安装中
-
以具有向 web 服务器 docroot 写入权限的用户身份登录到您的 Magento 服务器。
-
按顺序输入以下命令
cd <your Magento install dir>/app/code mkdir -p FPTCorp/Recommendation
-
转到 参考模块 GitHub。
-
点击 下载 Zip。
-
将您下载的
.zip
文件复制到您的 Magento 服务器的<magento install dir>/app/code/FPTCorp/Recommendation
目录。 -
按顺序输入以下命令
unzip fptcorp_recommendation-master.zip mv fptcorp_recommendation-master/* . rm -rf fptcorp_recommendation-master rm -f fptcorp_recommendation-master.zip
-
在文本编辑器中打开
<your Magento install dir>/app/etc/config.php
。 -
在
'modules' => array (
下的任何位置添加以下内容:'FPTCorp_Recommendation' => 1
-
保存您的更改并退出文本编辑器。
使用 Composer 安装模块
按顺序输入以下命令:
cd <your Magento install dir>
composer require fptcorp/recommendation
bin/magento setup:upgrade
bin/magento cache:flush
验证参考模块
-
以具有
root
权限的用户登录到您的 Magento 服务器。 -
按顺序输入以下命令以清除 Magento 缓存:
cd <your Magento install dir>/var rm -rf cache page_cache
-
如果您目前登录到 Magento Admin,请注销。
-
以管理员身份登录到 Magento Admin。
-
点击 商店 > 配置。
如果 FPTCORP 选项卡显示,则表示您成功安装了参考模块!
要使用该模块,您应注册我们 https://dashboard.knowlead.io/signup。注册后,您将收到包含 siteId 和 API_key 的电子邮件,以启用模块。转到 FPTCorp 选项卡,输入邮件中的 siteId 和 API_key。保存配置。
从命令行按顺序输入以下内容:
cd <your Magento install dir>
bin/magento cache:flush
查看参考模块的工作情况。
访客使用系统一段时间后,将显示推荐产品列表。就这样!您完成了!