cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 which event will fire after changing the shipping address of an order and how can i track?

Magento 2 which event will fire after changing the shipping address of an order and how can i track?

I am trying to find event that fires right after updating the shipping address / billing address of an order via the magento admin.

like http://stackoverflow.com/questions/31468618/need-a-magento-event-that-will-fire-after-changing-the-s...  this i want to do in Magento 2.

1 REPLY 1

Re: Magento 2 which event will fire after changing the shipping address of an order and how can i tr

One event which you can use is:

sales_order_address_save_after

Inside the observer, you can access the address by calling $observer->getData('address'). You will probably have to check whether the address is newly created or not (i.e. by $address->isObjectNew()). If you define the event in the etc/adminhtml/events.xml, you won't catch frontend changes.

Andreas von Studnitz, Trainer, Consultant, Developer and CEO of integer_net, Germany.