Forums / General Questions / Action after change order status in admin

Action after change order status in admin

Views: 607

Results 1 to 3 of 3
4 Jun 2014, 5:37 PM
#1
puhycz avatar

puhycz

New Zenner

Join Date:
Apr 2014
Location:
Czech republic
Posts:
21
Plugin Contributions:
0

Action after change order status in admin

Hi all,

I need exec automaticaly some php code after change order status in admin. Is it possible? And where is file for this change?

Many thanks.

8 Jun 2014, 9:28 PM
#2
t1000 avatar

t1000

New Zenner

Join Date:
Jun 2014
Location:
Vancouver, Canada
Posts:
7
Plugin Contributions:
0

Re: Action after change order status in admin

admin/orders.php

look for line:

case 'update_order':

below this, look for:

if ($order_updated == true) {
if ($status == DOWNLOADS_ORDERS_STATUS_UPDATED_VALUE) {

...code to executed

}
}

In this case, if the order gets updated and the status is changed to DOWNLOADS_ORDERS_STATUS_UPDATED_VALUE, code is executed.

17 Jun 2014, 11:21 AM
#3
puhycz avatar

puhycz

New Zenner

Join Date:
Apr 2014
Location:
Czech republic
Posts:
21
Plugin Contributions:
0

Re: Action after change order status in admin

Many thanks. It´s goal.