Hello,
I need to create plugin which will send order status to 3rd party application. We fire code on plgVmOnUpdateOrderPayment event, but problem is, that second parameter in plgVmOnUpdateOrderPayment event is not new status code, but old one (status code before change).
Do anybody know, how to get new status letter after changing order status?
Thank you in advance and sorry for bad english.
function plgVmOnUpdateOrderPayment ($data,$old_order_status) {
if($data->order_status=='C'){ //do something }
//add other cases
}