I know one can call $order->cancel()
to easily cancel an order, but it calls registerCancellation()
which in turns calls the internal _setState()
itself.
The internal _setState()
function will add a state change history all on its own, provided with no way to customize it.
If I want that status changing history contains my own comments, or even notify customers, how can I do that?
Best Answer
This should do the trick: