I am trying to do something customization from my custom module after an order has been cancelled (Frontend as well Backend). For this I have gone through cancelled Observer
on the sales/etc/events.xml
and sales/etc/adminhtml/events.xml
, But I can't find where it is.
Could you please help me where it is(Observer)? to do something after cancelled the order Frontend(Customer
) and Backend(Vendor/Seller
).
Which observer will use from frontend and backend?
Best Answer
The event you're looking for is
order_cancel_after
and it's dispatched in thecancel
method of\Magento\Sales\Model\Order
: