I need to add some custom logic in my extension after
- Edit Account Information
- Change Password
- Edit Address
The customer_save_after_data_object
event can be used for case 1. How about 2 & 3?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityYou can use below events for 3rd point.
Edit Address
customer_address_save_after
<event name="customer_address_save_after">
<observer name="customer_addres_after_save_viv_observer" instance="Magento\Customer\Observer\AfterAddressSaveObserver" />
</event>
or
customer_address_save_before
<event name="customer_address_save_before">
<observer name="customer_address_before_save_viv_observer" instance="Magento\Customer\Observer\BeforeAddressSaveObserver" />
</event>
Hope this helps.
For 2, you can use the same event as 1: customer_save_after_data_object
For 3, you can use the customer_address_save_after
event