Adobe Commerce條件事件

瞭解可用於Adobe Developer App Builder的Adobe Commerce條件事件。 若需其他檔案,請前往 安裝Adobe Commerce的Adobe I/O事件.

這部影片是給誰看的?

  • 剛開始使用I/O事件的Adobe Commerce和Adobe Developer App Builder的開發人員,需要建立AdobeApp Builder專案。

視訊內容 video-content

  • 瞭解條件事件
  • 瞭解新XML檔案io_events.xml的正確用法
  • 瞭解如何設定條件式事件
  • 定義用於條件事件的規則
  • 瞭解如何在Commerce執行個體中註冊事件 app/etc/config.php

有用的命令 useful-commands

bin/magento events:subscribe plugin.magento.catalog.model.resource_model.product.save --fields=sku --fields=qty --fields=category_id

bin/magento events:subscribe plugin.magento.catalog.model.resource_model.product.save_low_stock --parent=plugin.magento.catalog.model.resource_model.product.save --fields=sku --fields=qty --fields=category_id --rules="qty|lessThan|20" --rules="category_id|in|3,4,5"

cat app/etc/config.php

bin/magento events:list

bin/magento events:list -v

其他相關的教學課程

Adobe Developer檔案

recommendation-more-help
3a5f7e19-f383-4af8-8983-d01154c1402f