Magento call observer after customer delete


Magento call observer after customer delete : You can call observer after customer delete in magento as below.


Syntax of Magento call observer after customer delete

Add the following lines of code in your config.xml with details of your module.

       <events> 
       <customer_delete_commit_after>
            <observers>
              <observers>
              <Namespace_ModuleName_Model_Observer>
              <type>singleton</type>
              <class>Namespace_ModuleName_Model_Observer</class>
              <method>Name_of_method</method>
              </Namespace_ModuleName_Model_Observer>
            </observers>
            </observers>
        </customer_delete_commit_after>
        </events> 

Advertisements

Add Comment

📖 Read More