Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Exercise 11: Create a Magento extension to apply a callout to all cat…

…alogue pages
  • Loading branch information...
commit 79ab9de5b96efb87de1b07b53d80d2c0485fec7d 1 parent 3882faa
@organicinternet authored
View
24 app/code/local/OrganicInternet/Training/etc/config.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<config>
+ <modules>
+ <OrganicInternet_Training>
+ <version>0.0.1</version>
+ </OrganicInternet_Training>
+ </modules>
+ <frontend>
+ <layout>
+ <updates>
+ <organicinternet_training>
+ <file>organicinternet_training.xml</file>
+ </organicinternet_training>
+ </updates>
+ </layout>
+ </frontend>
+ <default>
+ <advanced>
+ <organicinternet_training>
+ <active>1</active>
+ </organicinternet_training>
+ </advanced>
+ </default>
+</config>
View
12 app/design/frontend/default/default/layout/organicinternet_training.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<layout version="0.1.0">
+ <default>
+ <reference name="footer">
+ <block type="core/template" name="left.permanent.callout" template="callouts/left_col.phtml" before="related">
+ <action method="setImgSrc"><src>images/media/col_left_callout.jpg</src></action>
+ <action method="setImgAlt" translate="alt" module="catalog"><alt>Our customer service is available 24/7</alt></action>
+ <action method="setLinkUrl"><url>checkout/cart</url></action>
+ </block>
+ </reference>
+ </default>
+</layout>
View
9 app/etc/modules/OrganicInternet_Training.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<config>
+ <modules>
+ <OrganicInternet_Training>
+ <active>true</active>
+ <codePool>local</codePool>
+ </OrganicInternet_Training>
+ </modules>
+</config>
Please sign in to comment.
Something went wrong with that request. Please try again.