Listening all states of order change:
sales_order_save_after
: What's the best event/way to listen for all order state changes in Magento 2?. There are some default states:new, pending_payment, processing, complete, closed, canceled, holded, payment_review
.For shipment event, we can use:
sales_order_shipment_save_after
2 of 2
replaced http://magento.stackexchange.com/ with https://magento.stackexchange.com/
Khoa TruongDinh
- 32.3k
- 11
- 90
- 156