Skip to content

Instantly share code, notes, and snippets.

@frostshoxx
Created June 3, 2017 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frostshoxx/e3104e1c4465843326219112388c507b to your computer and use it in GitHub Desktop.
Save frostshoxx/e3104e1c4465843326219112388c507b to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<SmashingMagazine_LogProductUpdate>
<version>0.0.1</version>
</SmashingMagazine_LogProductUpdate>
</modules>
<!-- Configure our module's behavior in the global scope -->
<global>
<adminhtml>
<!-- Defining an event observer -->
<events>
<!-- The code of the event we want to observe -->
<catalog_product_save_after>
<!-- Defining an observer for this event -->
<observers>
<!--
Unique identifier within the
catalog_product_save_after node.
By convention, we write the module's
name in lowercase.
-->
<smashingmagazine_logproductupdate>
<!-- The model to be instantiated -->
<class>smashingmagazine_logproductupdate/observer</class>
<!-- The method of the class to be called -->
<method>logUpdate</method>
<!-- The type of class to instantiate -->
<type>singleton</type>
</smashingmagazine_logproductupdate>
</observers>
</catalog_product_save_after>
</events>
</adminhtml>
</global>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment