Version Notes
Removes Compare Product Functionality and side widgets from Magento
Download this release
Release Info
Developer | Justin Saad |
Extension | Motech_RemoveCompare |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
app/code/community/Motech/RemoveCompare/Helper/Product/Compare.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class Motech_RemoveCompare_Helper_Product_Compare extends Mage_Catalog_Helper_Product_Compare
|
5 |
+
{
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Retrieve url for adding product to conpare list, return false
|
9 |
+
*
|
10 |
+
* @param Mage_Catalog_Model_Product $product - not used but must leave else we get errors
|
11 |
+
* @return boolean false
|
12 |
+
*/
|
13 |
+
public function getAddUrl($product)
|
14 |
+
{
|
15 |
+
return false;
|
16 |
+
}
|
17 |
+
|
18 |
+
}
|
19 |
+
?>
|
app/code/community/Motech/RemoveCompare/etc/config.xml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Motech_RemoveCompare>
|
5 |
+
<version>1.0.0</version>
|
6 |
+
</Motech_RemoveCompare>
|
7 |
+
</modules>
|
8 |
+
|
9 |
+
<frontend>
|
10 |
+
<layout>
|
11 |
+
<updates>
|
12 |
+
<removecompare>
|
13 |
+
<file>removecompare.xml</file>
|
14 |
+
</removecompare>
|
15 |
+
</updates>
|
16 |
+
</layout>
|
17 |
+
</frontend>
|
18 |
+
|
19 |
+
<global>
|
20 |
+
<helpers>
|
21 |
+
<catalog>
|
22 |
+
<rewrite>
|
23 |
+
<product_compare>Motech_RemoveCompare_Helper_Product_Compare</product_compare>
|
24 |
+
</rewrite>
|
25 |
+
</catalog>
|
26 |
+
</helpers>
|
27 |
+
</global>
|
28 |
+
|
29 |
+
</config>
|
app/design/frontend/base/default/layout/removecompare.xml
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<layout>
|
3 |
+
<default>
|
4 |
+
<remove name="catalog.compare.sidebar"/>
|
5 |
+
<remove name="right.reports.product.compared"/>
|
6 |
+
</default>
|
7 |
+
</layout>
|
app/etc/modules/Motech_RemoveCompare.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Motech_RemoveCompare>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Motech_RemoveCompare>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Motech_RemoveCompare</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Removes Compare Product Functionality and side widgets from Magento</summary>
|
10 |
+
<description>Removes Compare Product Functionality and side widgets from Magento</description>
|
11 |
+
<notes>Removes Compare Product Functionality and side widgets from Magento</notes>
|
12 |
+
<authors><author><name>Justin Saad</name><user>Motech</user><email>support@motechnetwork.com</email></author></authors>
|
13 |
+
<date>2012-12-10</date>
|
14 |
+
<time>17:43:19</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Motech"><dir name="RemoveCompare"><dir name="Helper"><dir name="Product"><file name="Compare.php" hash="7d67a6150290cd7ac94398da7781114d"/></dir></dir><dir name="etc"><file name="config.xml" hash="4a724e14f2203cd21adc1357fda75e15"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Motech_RemoveCompare.xml" hash="d85c0cec7db1016654b26e271e04d89f"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="removecompare.xml" hash="b1692bfb4aaf7e1df215d1edc8de4c2d"/></dir></dir></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
+
</package>
|