I'm working on a module for keeping track of inventory changes on orders, admin variation, api calls.

I'm using the event cataloginventory_stock_item_save_after which works fine on 2.2 but it seems to work only on the admin side. No luck on frontend orders.

Should it supposed to be dispatched whenever a stock item change is detected? What about api?

  • Do you have enterprise or open source version ? Commented Aug 9, 2017 at 7:58
  • CE thanks, would it be different on Enterprise?
    – apedic
    Commented Aug 9, 2017 at 8:53
  • Your module should be able to detect which "part" of magento changes the stock ? (for e.g. an order, admin or api)... or just behave as a monitor to stock changes ? (adding and subtract) Commented Aug 9, 2017 at 18:26
  • On enterprise there is a module specific for inventory, you can based on this. Commented Aug 10, 2017 at 11:02
  • Can you please show me your events.xml? Commented Aug 14, 2017 at 19:43


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.