Skip to content

Instantly share code, notes, and snippets.

@emrahuyanik
Last active August 29, 2015 14:10
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 emrahuyanik/021c59798e3447a4042b to your computer and use it in GitHub Desktop.
Save emrahuyanik/021c59798e3447a4042b to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<config>
<modules>
<mycompanyname_helloworld>
<version>0.1.0 </version>
</mycompanyname_helloworld>
</modules>
<frontend>
<routers>
<helloworld>
<use>standard</use>
<args>
<module>MyCompanyName_HelloWorld</module>
<frontName>helloworld</frontName>
</args>
</helloworld>
</routers>
</frontend>
<global>
<models>
<helloworld>
<class>MyCompanyName_HelloWorld_Model</class>
</helloworld>
</models>
<events>
<checkout_cart_add_product_complete>
<observers>
<mycompanyname_helloworld_observer>
<type>singleton</type>
<class>MyCompanyName_HelloWorld_Model_Observer</class>
<method>addProductToCartAfter</method>
</mycompanyname_helloworld_observer>
</observers>
</checkout_cart_add_product_complete>
</events>
</global>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment