Blueclaw_ContainingCategories - Version 0.1.0

Version Notes

Initial Release

Download this release

Release Info

Developer John Hickling
Extension Blueclaw_ContainingCategories
Version 0.1.0
Comparing to
See all releases


Version 0.1.0

app/code/community/Blueclaw/ContainingCategories/Block/List.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Blueclaw
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * Available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/osl-3.0.php
10
+ *
11
+ *
12
+ * @category Blueclaw
13
+ * @package Blueclaw_ContainingCategories
14
+ * @copyright Copyright (c) 2011 Blueclaw Conversion Ltd. (http://blueclawecommerce.co.uk)
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ /**
19
+ * ContainingCategories list
20
+ *
21
+ * @category Blueclaw
22
+ * @package Blueclaw_ContainingCategories
23
+ * @author John Hickling <john@blueclaw.co.uk>
24
+ */
25
+ class Blueclaw_ContainingCategories_Block_List extends Mage_Core_Block_Template
26
+ {
27
+ protected $_product = null;
28
+
29
+ function getProduct()
30
+ {
31
+ if (!$this->_product) {
32
+ $this->_product = Mage::registry('product');
33
+ }
34
+ return $this->_product;
35
+ }
36
+
37
+ }
app/code/community/Blueclaw/ContainingCategories/etc/config.xml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Blueclaw_ContainingCategories>
5
+ <version>0.1.0</version>
6
+ </Blueclaw_ContainingCategories>
7
+ </modules>
8
+ <global>
9
+ <blocks>
10
+ <containingcategories>
11
+ <class>Blueclaw_ContainingCategories_Block</class>
12
+ </containingcategories>
13
+ </blocks>
14
+ </global>
15
+ <frontend>
16
+ <layout>
17
+ <updates>
18
+ <containingcategories>
19
+ <file>containingcategories.xml</file>
20
+ </containingcategories>
21
+ </updates>
22
+ </layout>
23
+ <translate>
24
+ <modules>
25
+ <Blueclaw_Smartreviews>
26
+ <files>
27
+ <default>Blueclaw_ContainingCategories.csv</default>
28
+ </files>
29
+ </Blueclaw_Smartreviews>
30
+ </modules>
31
+ </translate>
32
+ </frontend>
33
+ </config>
app/design/frontend/base/default/layout/containingcategories.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <catalog_product_view>
4
+ <reference name="product.info.additional">
5
+ <block type="containingcategories/list" name="containing_cats" as="containing_cats" template="containingcategories/list.phtml">
6
+ <action method="addToParentGroup"><group>detailed_info</group></action>
7
+ </block>
8
+ </reference>
9
+ </catalog_product_view>
10
+ </layout>
app/etc/modules/Blueclaw_ContainingCategories.xml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Blueclaw_ContainingCategories>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ <depends>
8
+ <Mage_Catalog />
9
+ <Mage_Eav />
10
+ </depends>
11
+ </Blueclaw_ContainingCategories>
12
+ </modules>
13
+ </config>
app/locale/en_GB/Blueclaw_ContainingCategories.csv ADDED
@@ -0,0 +1 @@
 
1
+ "Containing Categories", "Compatible Printers"
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Blueclaw_ContainingCategories</name>
4
+ <version>0.1.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Simple module to list the categories a product belongs to on the category page.</summary>
10
+ <description>A very simple module but one that gives functionality we have had requested on a number of sites. This module adds a list to the product pages of all the categories a product belongs to with links back to those categories.</description>
11
+ <notes>Initial Release</notes>
12
+ <authors><author><name>John Hickling</name><user>johnboybc</user><email>john@blueclaw.co.uk</email></author></authors>
13
+ <date>2012-02-10</date>
14
+ <time>10:33:36</time>
15
+ <contents><target name="magecommunity"><dir name="Blueclaw"><dir name="ContainingCategories"><dir name="Block"><file name="List.php" hash="aa12f33a592ac55ea4e75cbf98f8102d"/></dir><dir name="etc"><file name="config.xml" hash="0e73d9549841812de0fb1d76cb2038b1"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Blueclaw_ContainingCategories.xml" hash="ac74cb4519379481f91b4745d1adc233"/></dir></target><target name="magelocale"><dir name="en_GB"><file name="Blueclaw_ContainingCategories.csv" hash="c779d886382bc19e2f74a18d4aa48a5c"/></dir></target><target name="magelocal"><dir name="en_US"><file name="Blueclaw_ContainingCategories.csv" hash=""/></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="containingcategories"><file name="list.phtml" hash=""/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="containingcategories.xml" hash="5138bea2bdd30e1045a0b38721697bc6"/></dir></dir></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.2.1</min><max>5.3.3</max></php></required></dependencies>
18
+ </package>