orvisoft / module-reevoo
此模块为 Magento 2 提供了 Reevoo 的简易集成。尽管这不是 Reevoo 提供的官方集成,但您可以通过此模块快速获得完整的集成。
This package is auto-updated.
Last update: 2024-09-29 06:09:09 UTC
README
`orvisoft/module-reevoo`
主要功能
此模块为 Magento 2 提供了 Reevoo 的简易集成。尽管这不是 Reevoo 提供的官方集成,但您可以通过此模块快速获得完整的集成。
安装
* = 在生产环境中请使用 --keep-generated
选项
类型 1:Zip 文件
- 将 zip 文件解压到
app/code/OrviSoft/Reevoo
- 通过运行
php bin/magento module:enable OrviSoft_Reevoo
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新(*) - 通过运行
php bin/magento cache:flush
清除缓存
类型 2:Composer (暂时不可用)
将模块放入 composer 仓库,例如私有仓库repo.magento.com
公共仓库packagist.org
公共 GitHub 仓库作为 vcs
通过运行composer config repositories.repo.magento.com composer https://repo.magento.com/
将 composer 仓库添加到配置中通过运行composer require orvisoft/module-reevoo
安装模块 composer通过运行php bin/magento module:enable OrviSoft_Reevoo
启用模块通过运行php bin/magento setup:upgrade
应用数据库更新(*)通过运行php bin/magento cache:flush
清除缓存
配置
-
启用(revoo/option/enable)
-
选择属性(revoo/option/attribute)
-
每页页面评论(revoo/option/per_page)
-
合作伙伴 ID(revoo/option/partner_id)
-
启用产品源(revoo/option/enable_product_feed)
-
启用购买者源(revoo/option/enable_purchaser_feed)
-
启用源(revoo/feed_settings/enable)
-
源路径(revoo/feed_settings/feed_path)
-
sFTP 主机(revoo/feed_settings/ftp_host)
-
sFTP 用户(revoo/feed_settings/ftp_user)
-
sFTP 密码(revoo/feed_settings/ftp_pass)
-
cronjob 频率(revoo/cronjob/frequency)
-
开始时间(revoo/cronjob/time)
规格
-
cronjob
- revoo-feed-job
-
助手
- OrviSoft\Reevoo\Helper\Productreviews
- OrviSoft\Reevoo\Helper\Feed
-
块
- 产品视图 > product/view/reviews.phtml
-
块
- 产品列表 > product/list/reviews.phtml
-
块
- JavaScript > javascript.phtml
主题调整
此模块通常不需要或只有很少的配置要求,但是此模块非常灵活,可以根据您的主题进行必要的更改。
-
对于产品视图页面,您可以修改文件
layout/catalog_product_view.xml
-
对于产品列表视图页面,您需要修改您的
app/design/frontend/{YOUR-PACKAGE}/{YOUR-THEME}/Magento_Catalog/templates/product/list.phtml
并进行必要的更改如下。
// add helper somewhere on top of the file. <?php $_reevoo_helper = $this->helper('OrviSoft\Reevoo\Helper\Productreviews'); ?> // This will help you call the reviews within your product list loop. <?php echo $_reevoo_helper->getReviewPerProduct($_product); ?>