Magento call observer after customer login


Magento call observer after customer login : You Can call observer after customer login as below


Magento call observer after customer login

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

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


Advertisements

Add Comment

📖 Read More