产品库存数量发生变化时是否会发生事件?
我尝试过:
cataloginventory_stock_item_save_after
_after and _before.
但只有在保存产品时才会触发此事件,而在销售或订单取消时不会触发。
那么有什么方便的事件吗?
谢谢和欢呼, 马蒂亚斯
最佳答案
cataloginventory_stock_item_save_commit_after
在销售时触发。
关于events - Magento 股票变动事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13469560/