Hi,
I'm not sure if you are looking for something like this, but in this way you can monitor if status of the order is changed:
protected override void OnInit()
{
base.OnInit();
OrderInfo.TYPEINFO.Events.Update.Before += Update_Before;
}
And then handle change with this code:
private void Update_Before(object sender, ObjectEventArgs e)
{
var order = e.Object as OrderInfo;
if (order != null)
{
if (order.AnyItemChanged(nameof(OrderInfo.OrderStatusID)))
{
//Status is changed
}
}
}
Any other data about changed status and other order data can be retrieved from Kentico API. Check more in documentation.
Best regards,
Dragoljub