Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Custom event hanlder on Order Status update View modes: 
User avatar
Member
Member
eagleag - 3/20/2013 6:27:27 PM
   
Custom event hanlder on Order Status update
Hi,

Iwould like to craete an event handler for event "order status update".
I read the following info inn dev guide
http://devnet.kentico.com/docs/devguide/index.html?data_handler.htm, but im not clear on how to actually create the event handler in this situation?

Anyone have any tips or examples?

Would be much appreciated ;)

User avatar
Member
Member
kentico_davidb2 - 3/21/2013 2:55:27 AM
   
RE:Custom event hanlder on Order Status update
Hello,

I would recommend using the newer approach via Global Events (http://devnet.kentico.com/docs/devguide/event_handlers_overview.htm)

In your case, it would be the OrderStatusInfo.TYPEINFO.Events.Update event.

Dave

User avatar
Member
Member
eagleag - 3/24/2013 6:47:18 AM
   
RE:Custom event hanlder on Order Status update
Thanks for you help.

This is what I used:
OrderInfo.TYPEINFO.Events.Update.After += Order_Upadte_After;