blendee/blendee-magento2

Blendee 集成插件 for Magento 2

安装: 135

依赖: 0

建议者: 0

安全: 0

星星: 0

分支: 0

类型:magento2-module

2.0.15 2024-09-17 20:00 UTC

This package is not auto-updated.

Last update: 2024-09-17 18:00:57 UTC


README

此模块将基于 Magento 2 的系统与 Blendee 集成

模块安装或更新

模块应通过以下命令进行安装/更新

composer require blendee/blendee-magento2
bin/magento setup:upgrade

如果你的 Magento 安装在生产环境中运行,请也执行以下操作

bin/magento setup:static-content:deploy -f

最后,使用以下命令清除系统缓存

php bin/magento cache:clean && php bin/magento cache:flush

定时任务

执行导入的脚本

  • Command/Run.php: 导出状态为 STATUS_MARKED_REBUILD ('marked-rebuild') 的 feed
  • Command/Rebuild.php: 将 feed 状态设置为 STATUS_MARKED_REBUILD ('marked-rebuild') 以重新运行 Command/Run.php

此模块允许以 2 种模式管理向 blendee 导入资源的任务

  • 由 Magento 完全管理的调度:使用以下命令安装 magento crontab
    php bin/magento cron:install
    

    Magento 将在 crontab 中插入以下命令

      #~ MAGENTO START
      ....
      #~ MAGENTO END
    

    这将每分钟检查要执行的任务

  • 手动管理调度:通过修改 crontab。在 "Stores > Configuration > Blendee > Feed > General" 中禁用 Magento 的 cron 后,向 crontab 添加以下内容
      bin/magento blendee:feed:run
      bin/magento blendee:feed:rebuild
    

    由于 blendee:feed:run 命令执行导出状态为 STATUS_MARKED_REBUILD ('marked-rebuild') 的 feed,建议以高频率(建议每分钟调用一次)调用它,而 blendee:feed:rebuild 则只有在需要启动 feed 重建时才调用。

在从 Magento 的 cron 转到手动 cron 时,将根据文档停用作业,将日期设置为不可执行(30 月 2 日)

配置

有关模块前端配置的更多详细信息,请参阅以下文档 https://drive.google.com/file/d/1pbpZxbzRkzZfkKwJF2PeZR1cCoJeWlII/view