Version Notes
Please contact help@commercestack.com with any feature requests, bugs, issues, or questions.
Download this release
Release Info
Developer | CommerceStack |
Extension | CommerceStack_Recommender |
Version | 3.0.1 |
Comparing to | |
See all releases |
Code changes from version 3.0.0 to 3.0.1
app/code/community/CommerceStack/Recommender/Block/Product/List/Related.php
CHANGED
@@ -5,7 +5,7 @@ class CommerceStack_Recommender_Block_Product_List_Related extends Mage_Catalog_
|
|
5 |
protected function _prepareData()
|
6 |
{
|
7 |
$product = $this->getProduct();
|
8 |
-
|
9 |
// A bit of a hack, but return an empty collection if user selected 0 recommendations to show in config
|
10 |
$limit = Mage::getStoreConfig('recommender/relatedproducts/numberofrelatedproducts');
|
11 |
if($limit < 1)
|
5 |
protected function _prepareData()
|
6 |
{
|
7 |
$product = $this->getProduct();
|
8 |
+
|
9 |
// A bit of a hack, but return an empty collection if user selected 0 recommendations to show in config
|
10 |
$limit = Mage::getStoreConfig('recommender/relatedproducts/numberofrelatedproducts');
|
11 |
if($limit < 1)
|
app/code/community/CommerceStack/Recommender/Model/Product/Indexer/Category.php
CHANGED
@@ -45,22 +45,22 @@ class CommerceStack_Recommender_Model_Product_Indexer_Category extends Mage_Inde
|
|
45 |
*/
|
46 |
protected function _registerEvent(Mage_Index_Model_Event $event)
|
47 |
{
|
48 |
-
$event->addNewData(self::EVENT_MATCH_RESULT_KEY, true);
|
49 |
-
$process = $event->getProcess();
|
50 |
-
|
51 |
-
try
|
52 |
-
{
|
53 |
-
/** @var $dataHelper CommerceStack_Recommender_Helper_Data */
|
54 |
-
$dataHelper = Mage::helper('recommender');
|
55 |
-
$dataHelper->requestUpdate(3);
|
56 |
-
}
|
57 |
-
catch(Exception $e)
|
58 |
-
{
|
59 |
-
// Manual indexing required
|
60 |
-
$process->changeStatus(Mage_Index_Model_Process::STATUS_REQUIRE_REINDEX);
|
61 |
-
}
|
62 |
-
|
63 |
-
return $this;
|
64 |
}
|
65 |
|
66 |
/**
|
@@ -80,18 +80,18 @@ class CommerceStack_Recommender_Model_Product_Indexer_Category extends Mage_Inde
|
|
80 |
*/
|
81 |
public function matchEvent(Mage_Index_Model_Event $event)
|
82 |
{
|
83 |
-
$data = $event->getNewData();
|
84 |
-
if (isset($data[self::EVENT_MATCH_RESULT_KEY])) {
|
85 |
-
return $data[self::EVENT_MATCH_RESULT_KEY];
|
86 |
-
}
|
87 |
-
$entity = $event->getEntity();
|
88 |
-
$result = true;
|
89 |
-
if (!($entity == Mage_Catalog_Model_Product::ENTITY || $entity == Mage_Catalog_Model_Category::ENTITY))
|
90 |
-
{
|
91 |
-
return;
|
92 |
-
}
|
93 |
-
$event->addNewData(self::EVENT_MATCH_RESULT_KEY, $result);
|
94 |
-
return $result;
|
95 |
}
|
96 |
|
97 |
/**
|
45 |
*/
|
46 |
protected function _registerEvent(Mage_Index_Model_Event $event)
|
47 |
{
|
48 |
+
// $event->addNewData(self::EVENT_MATCH_RESULT_KEY, true);
|
49 |
+
// $process = $event->getProcess();
|
50 |
+
//
|
51 |
+
// try
|
52 |
+
// {
|
53 |
+
// /** @var $dataHelper CommerceStack_Recommender_Helper_Data */
|
54 |
+
// $dataHelper = Mage::helper('recommender');
|
55 |
+
// $dataHelper->requestUpdate(3);
|
56 |
+
// }
|
57 |
+
// catch(Exception $e)
|
58 |
+
// {
|
59 |
+
// // Manual indexing required
|
60 |
+
// $process->changeStatus(Mage_Index_Model_Process::STATUS_REQUIRE_REINDEX);
|
61 |
+
// }
|
62 |
+
//
|
63 |
+
// return $this;
|
64 |
}
|
65 |
|
66 |
/**
|
80 |
*/
|
81 |
public function matchEvent(Mage_Index_Model_Event $event)
|
82 |
{
|
83 |
+
// $data = $event->getNewData();
|
84 |
+
// if (isset($data[self::EVENT_MATCH_RESULT_KEY])) {
|
85 |
+
// return $data[self::EVENT_MATCH_RESULT_KEY];
|
86 |
+
// }
|
87 |
+
// $entity = $event->getEntity();
|
88 |
+
// $result = true;
|
89 |
+
// if (!($entity == Mage_Catalog_Model_Product::ENTITY || $entity == Mage_Catalog_Model_Category::ENTITY))
|
90 |
+
// {
|
91 |
+
// return;
|
92 |
+
// }
|
93 |
+
// $event->addNewData(self::EVENT_MATCH_RESULT_KEY, $result);
|
94 |
+
// return $result;
|
95 |
}
|
96 |
|
97 |
/**
|
app/code/community/CommerceStack/Recommender/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<CommerceStack_Recommender>
|
5 |
-
<version>3.0.
|
6 |
</CommerceStack_Recommender>
|
7 |
</modules>
|
8 |
|
2 |
<config>
|
3 |
<modules>
|
4 |
<CommerceStack_Recommender>
|
5 |
+
<version>3.0.1</version>
|
6 |
</CommerceStack_Recommender>
|
7 |
</modules>
|
8 |
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>CommerceStack_Recommender</name>
|
4 |
-
<version>3.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License v 3.0</license>
|
7 |
<channel>community</channel>
|
@@ -16,9 +16,9 @@ Please contact help@commercestack.com with any bugs, issues, or feature requests
|
|
16 |
After installing, navigate to System->Configuration->Related Products Manager to begin.</description>
|
17 |
<notes>Please contact help@commercestack.com with any feature requests, bugs, issues, or questions.</notes>
|
18 |
<authors><author><name>CommerceStack</name><user>dbright</user><email>dbright@commercestack.com</email></author></authors>
|
19 |
-
<date>2015-11-
|
20 |
-
<time>
|
21 |
-
<contents><target name="magecommunity"><dir name="CommerceStack"><dir name="Recommender"><dir name="Block"><dir name="Cart"><file name="Crosssell.php" hash="e97eb9a5f718b3c549372388739075b2"/></dir><dir name="Catalog"><dir name="Product"><dir name="Edit"><dir name="Tab"><file name="Crosssell.php" hash="4a629f55e16abcd45d8b97ea7b83ee9d"/><file name="Related.php" hash="5d3e6e6fbeadee6a7b5b31675338171e"/></dir><file name="Tabs.php" hash="7e03bf328aee99fa9d591dc3836ee6d3"/></dir></dir></dir><dir name="Product"><dir name="List"><file name="Related.php" hash="
|
22 |
<compatible/>
|
23 |
<dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
|
24 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>CommerceStack_Recommender</name>
|
4 |
+
<version>3.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License v 3.0</license>
|
7 |
<channel>community</channel>
|
16 |
After installing, navigate to System->Configuration->Related Products Manager to begin.</description>
|
17 |
<notes>Please contact help@commercestack.com with any feature requests, bugs, issues, or questions.</notes>
|
18 |
<authors><author><name>CommerceStack</name><user>dbright</user><email>dbright@commercestack.com</email></author></authors>
|
19 |
+
<date>2015-11-19</date>
|
20 |
+
<time>21:02:07</time>
|
21 |
+
<contents><target name="magecommunity"><dir name="CommerceStack"><dir name="Recommender"><dir name="Block"><dir name="Cart"><file name="Crosssell.php" hash="e97eb9a5f718b3c549372388739075b2"/></dir><dir name="Catalog"><dir name="Product"><dir name="Edit"><dir name="Tab"><file name="Crosssell.php" hash="4a629f55e16abcd45d8b97ea7b83ee9d"/><file name="Related.php" hash="5d3e6e6fbeadee6a7b5b31675338171e"/></dir><file name="Tabs.php" hash="7e03bf328aee99fa9d591dc3836ee6d3"/></dir></dir></dir><dir name="Product"><dir name="List"><file name="Related.php" hash="7a80f10945bd246f0d907fa016459124"/><file name="Upsell.php" hash="3142af81e5978ef1814fd334ab66e85c"/></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Apikey.php" hash="def235a2710cea0b01ace89bce9ffda4"/><file name="Apikeyurl.php" hash="5ce3031fd84f912b3552d7c37f2a04ac"/><file name="Apisecret.php" hash="9b9a92981a5ff80aa4ec3e4255844801"/><file name="Apiuser.php" hash="bba5a87192ab0821d999aa4ab8cddada"/><file name="Cancelbutton.php" hash="7a87871461a6d589a28ccbc18f9d1603"/><file name="Customrulesiframe.php" hash="523b3dd848d62ab31bdc285ec2b6fdbb"/><file name="Email.php" hash="0231900a317a75e1f72cfdd440df2e45"/><file name="Helpiframe.php" hash="cd049db20bfa53e6a57eaba796a0f5b6"/><file name="Paymentiframe.php" hash="d69c5e5af421dc15bc2f27d871af20be"/><file name="Updatebutton.php" hash="5171684960b8e5b9030bd4f0bc427234"/></dir><file name="Form.php" hash="e879294fa8ff2d914dbe352979a2cc0e"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="dd7921ec7598a4abbd643b833dd10909"/></dir><dir name="Model"><dir name="Product"><dir name="Indexer"><file name="Category.php" hash="aade97bc6a97cade0d57d1ffd329b69b"/></dir><file name="Link.php" hash="c4e15d853882690db3574424b5e275c7"/></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><dir name="Product"><dir name="Link"><dir name="Product"><file name="Collection.php" hash="f9c1236b59695df2f3e39454c8dd32ed"/></dir><file name=".DS_Store" hash="94881651f077db217b9ec427591b721c"/></dir><file name="Link.php" hash="80fa3f20b8a3894bab960e01c4e052f5"/><file name=".DS_Store" hash="e999693fd37d82450997699da2d986e2"/></dir><file name=".DS_Store" hash="d032518ab85e6c3cbbb43688f6bc5bfe"/></dir><file name=".DS_Store" hash="4c2b2d46eba62dd07c7ffc1cf30460b4"/></dir><dir name="Mysql4"><file name="Setup.php" hash="1e93566c0f56cc52cdf4e4a73153d2f9"/></dir><file name=".DS_Store" hash="195fa1ec4bb1126dc072b289fb841603"/></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Upsellsource.php" hash="34ed5e3c61bd288340b7de3809953ad3"/></dir></dir></dir><file name=".DS_Store" hash="b98ec272e7b775e485af3b5db7b24e6c"/></dir><dir name="controllers"><file name="AccountController.php" hash="2ba2f4ae67df9a140ed2b8b5bc4ec986"/><dir name="Adminhtml"><file name="RecommenderproductController.php" hash="f106f5fce36166b0d43cbf513b234482"/></dir><file name="IndexController.php" hash="7f2b74585f445f982064de464f07e7ff"/></dir><dir name="etc"><file name="config.xml" hash="cfada4443fd926488e5492457199deaa"/><file name="system.xml" hash="83689275798fbc63b25d76a8c9191016"/></dir><dir name="sql"><dir name="recommender_setup"><file name="mysql4-install-0.9.3.php" hash="4ce1a6cfbc0dbcb55433d31d539d8f50"/><file name="mysql4-upgrade-0.9.3-0.9.4.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-0.9.4-0.9.5.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-0.9.5-1.0.0.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.0.2-1.1.0.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.1.0-1.2.0.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.2.0-1.2.1.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.2.1-1.2.2.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.2.2-1.2.3.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.2.3-1.2.4.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.2.4-1.2.5.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.2.5-1.2.6.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.2.6-2.0.0.php" hash="b2d2b463578d50b2a1a313c36d02ecdf"/><file name="mysql4-upgrade-2.0.0-2.0.1.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.0.1-2.0.2.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.0.2-2.0.3.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.0.3-2.0.4.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.0.4-2.0.5.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.0.5-2.0.6.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.0.6-2.0.7.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.0.7-2.0.8.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.0.8-2.0.9.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.0.9-2.1.0.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.1.0-2.1.1.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.1.1-2.1.2.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.1.2-2.1.3.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.1.3-2.2.0.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.2.0-2.2.1.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.2.1-2.2.2.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.2.2-2.2.3.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.2.3-2.2.4.php" hash="feabe5cc691b088d6ade3e04d6b120fc"/><file name="mysql4-upgrade-2.2.4-3.0.0.php" hash="a73eaea333687fbf06a789fa5ca60c3c"/></dir></dir><file name=".DS_Store" hash="9567c71fb3193ad25155b1c371035ddf"/></dir><dir name="CsApiClient"><dir name="Model"><file name="Account.php" hash="20e1e6ba30fec17b4222ee962fb45285"/><file name="Server.php" hash="026be03911b4af5079f2644f06634aa5"/></dir><dir name="etc"><file name="config.xml" hash="852026aa85d127c12b666444779fbc35"/></dir></dir><dir name="CsNotification"><dir name="Model"><dir name="AdminNotification"><file name="Feed.php" hash="b394ec8eb1473b3dadef23bf5aa3c1d6"/></dir></dir><dir name="etc"><file name="config.xml" hash="9ede9a59b2e857828a341bbf53953abe"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="recommender.xml" hash="8a42112390c712a8085f1b966c5fe437"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="CommerceStack_Recommender.xml" hash="c0faaf57bb93c70fe6ba45e68c96fc11"/><file name="CommerceStack_CsApiClient.xml" hash="dd56312764a58b18b7e21738ebb8a6b0"/><file name="CommerceStack_CsNotification.xml" hash="94bb10db3af629c7e68bbf32fd18159c"/></dir></target></contents>
|
22 |
<compatible/>
|
23 |
<dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
|
24 |
</package>
|