Ravi Soni
Ravi Soni

Reputation: 2250

Magento : Backend event handle for customer save

I have tried searching the web for the event that gets fired when admin saves a customer information.

After getting tired of searching i have the option of adding the custom event in the core code but before moving into this action i would like to ask from experts if they know this.

Thanks in advance.

Upvotes: 2

Views: 2926

Answers (3)

Deepak Mallah
Deepak Mallah

Reputation: 4076

check this

Class: Mage_Sales_Model_Observer
Method: customer_save_after

Upvotes: 0

Michael Leiss
Michael Leiss

Reputation: 5670

<adminhtml>
   <events>
            <customer_save_before>
                <observers>
                    <my_customer_save_observer>
                        <type>singleton</type>
                        <class>Module_Namespace_Model_Observer</class>
                        <method>yourMethod</method>
                    </my_customer_save_observer>
                </observers>
            </customer_save_before>
   </events>
</adminhtml>

Good luck!

Upvotes: 2

Jscti
Jscti

Reputation: 14440

It's the customer_save_after (or customer_save_before) dynamic event (model entity code customer + dynamic model event _save_after

If you only want to plug some code to this event in the Backend context : use the adminhtml XML tag in your config.xml when you register your new event (instead of global or frontend).

Upvotes: 2

Related Questions