Magento call observer after order save commit


Magento call observer after order save commit as below.


Syntax of Magento call observer after order save commit

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

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

Advertisements

Add Comment

📖 Read More