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 | 1.2.4 |
Comparing to | |
See all releases |
Code changes from version 1.2.3 to 1.2.4
app/code/community/CommerceStack/Recommender/Helper/Data.php
CHANGED
@@ -153,13 +153,7 @@ class CommerceStack_Recommender_Helper_Data extends Mage_Core_Helper_Abstract
|
|
153 |
}
|
154 |
catch(Pest_ServerError $e)
|
155 |
{
|
156 |
-
|
157 |
-
$i--;
|
158 |
-
$retries++;
|
159 |
-
if($retries > 3)
|
160 |
-
{
|
161 |
-
throw new Exception($e->getMessage(), $e->getCode(), $e);
|
162 |
-
}
|
163 |
}
|
164 |
|
165 |
if($chunkSize == 0) break;
|
@@ -200,7 +194,7 @@ class CommerceStack_Recommender_Helper_Data extends Mage_Core_Helper_Abstract
|
|
200 |
}
|
201 |
catch(Exception $e)
|
202 |
{
|
203 |
-
|
204 |
}
|
205 |
}
|
206 |
|
153 |
}
|
154 |
catch(Pest_ServerError $e)
|
155 |
{
|
156 |
+
$this->reportException($e);
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
}
|
158 |
|
159 |
if($chunkSize == 0) break;
|
194 |
}
|
195 |
catch(Exception $e)
|
196 |
{
|
197 |
+
$this->reportException($e);
|
198 |
}
|
199 |
}
|
200 |
|
app/code/community/CommerceStack/Recommender/controllers/IndexController.php
CHANGED
@@ -11,9 +11,9 @@ class CommerceStack_Recommender_IndexController extends Mage_Adminhtml_Controlle
|
|
11 |
|
12 |
try
|
13 |
{
|
14 |
-
|
15 |
//$dataHelper->setTotalTasks(68);
|
16 |
-
$dataHelper->setTotalTasks(
|
17 |
|
18 |
// Basic analysis
|
19 |
$dataHelper->setCurrentTask($currentTask);
|
@@ -37,11 +37,11 @@ class CommerceStack_Recommender_IndexController extends Mage_Adminhtml_Controlle
|
|
37 |
$currentTask++;
|
38 |
|
39 |
$dataHelper->setCurrentTask($currentTask);
|
40 |
-
$dataHelper->postRecordset('v.entity_id as product_id, v.value as url_path', (string)Mage::getConfig()->getTablePrefix() . 'catalog_product_entity_varchar v' , "INNER JOIN " . $dataHelper->getTableNameSafe('eav/attribute') . " eav ON v.attribute_id = eav.attribute_id AND eav.attribute_code='url_path'", '', 'entity_id', 'producturl',
|
41 |
$currentTask++;
|
42 |
|
43 |
$dataHelper->setCurrentTask($currentTask);
|
44 |
-
$dataHelper->postRecordset('*', $dataHelper->getTableNameSafe('core/url_rewrite'), '', 'WHERE product_id IS NOT null', 'url_rewrite_id', 'urlrewrite',
|
45 |
$currentTask++;
|
46 |
|
47 |
$productLinks = Mage::getModel('recommender/product_link');
|
11 |
|
12 |
try
|
13 |
{
|
14 |
+
$dataHelper->setClientStatus('transferring');
|
15 |
//$dataHelper->setTotalTasks(68);
|
16 |
+
$dataHelper->setTotalTasks(7);
|
17 |
|
18 |
// Basic analysis
|
19 |
$dataHelper->setCurrentTask($currentTask);
|
37 |
$currentTask++;
|
38 |
|
39 |
$dataHelper->setCurrentTask($currentTask);
|
40 |
+
$dataHelper->postRecordset('v.entity_id as product_id, v.value as url_path', (string)Mage::getConfig()->getTablePrefix() . 'catalog_product_entity_varchar v' , "INNER JOIN " . $dataHelper->getTableNameSafe('eav/attribute') . " eav ON v.attribute_id = eav.attribute_id AND eav.attribute_code='url_path'", '', 'entity_id', 'producturl', 5000);
|
41 |
$currentTask++;
|
42 |
|
43 |
$dataHelper->setCurrentTask($currentTask);
|
44 |
+
$dataHelper->postRecordset('*', $dataHelper->getTableNameSafe('core/url_rewrite'), '', 'WHERE product_id IS NOT null', 'url_rewrite_id', 'urlrewrite', 5000);
|
45 |
$currentTask++;
|
46 |
|
47 |
$productLinks = Mage::getModel('recommender/product_link');
|
app/code/community/CommerceStack/Recommender/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<CommerceStack_Recommender>
|
5 |
-
<version>1.2.
|
6 |
</CommerceStack_Recommender>
|
7 |
</modules>
|
8 |
|
2 |
<config>
|
3 |
<modules>
|
4 |
<CommerceStack_Recommender>
|
5 |
+
<version>1.2.4</version>
|
6 |
</CommerceStack_Recommender>
|
7 |
</modules>
|
8 |
|
js/commercestack/adminhtml/recommender.js
CHANGED
@@ -97,10 +97,10 @@ function updateUI(status)
|
|
97 |
}
|
98 |
else
|
99 |
{
|
100 |
-
// If communications is dead, try to restart
|
101 |
-
if(status.secs_since_last_request > 120) {
|
102 |
-
$$('#row_recommender_relatedproducts_update td.value button')[0].click();
|
103 |
-
}
|
104 |
|
105 |
if(status.current_task == 0 && status.current_frame == 0 && status.total_tasks == 1 && status.total_frames == 1)
|
106 |
{
|
97 |
}
|
98 |
else
|
99 |
{
|
100 |
+
// If communications is dead, try to restart (disabled until we can figure out why this seems to run out of control)
|
101 |
+
// if(status.secs_since_last_request > 120) {
|
102 |
+
// $$('#row_recommender_relatedproducts_update td.value button')[0].click();
|
103 |
+
// }
|
104 |
|
105 |
if(status.current_task == 0 && status.current_frame == 0 && status.total_tasks == 1 && status.total_frames == 1)
|
106 |
{
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>CommerceStack_Recommender</name>
|
4 |
-
<version>1.2.
|
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>2012-
|
20 |
-
<time>
|
21 |
-
<contents><target name="magecommunity"><dir name="CommerceStack"><dir name="Recommender"><dir name="Block"><dir name="Cart"><file name="Crosssell.php" hash="f931d15f47b6390cc6b2d3c86a2df030"/></dir><dir name="Catalog"><dir name="Product"><dir name="Edit"><dir name="Tab"><file name="Crosssell.php" hash="4eacb2e01e0ec6ead7109fe696fc2e23"/><file name="Related.php" hash="3469e281271de8f9457f82fdc90ca104"/></dir><file name="Tabs.php" hash="aa26d6e9e585117100e983616e6a0afa"/></dir></dir></dir><dir name="Product"><dir name="List"><file name="Related.php" hash="10398409402120307ec7f24b7d396b40"/><file name="Upsell.php" hash="4edc3dd9e8cb5e946a0309494bc53e99"/></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Apikey.php" hash="fae5b45d9eace7c2934b9f70f5ec6c8e"/><file name="Apikeyurl.php" hash="5ce3031fd84f912b3552d7c37f2a04ac"/><file name="Cancelbutton.php" hash="070131f41c4969cf51917b486e487b26"/><file name="Updatebutton.php" hash="2a370f132bc2b6fc5d21f2f477b6115e"/></dir><file name="Form.php" hash="de1c3b70b03ac09fe1d5c7cd7613feb1"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="
|
22 |
<compatible/>
|
23 |
<dependencies><required><php><min>5.2.13</min><max>5.4.0</max></php></required></dependencies>
|
24 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>CommerceStack_Recommender</name>
|
4 |
+
<version>1.2.4</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>2012-06-12</date>
|
20 |
+
<time>18:52:09</time>
|
21 |
+
<contents><target name="magecommunity"><dir name="CommerceStack"><dir name="Recommender"><dir name="Block"><dir name="Cart"><file name="Crosssell.php" hash="f931d15f47b6390cc6b2d3c86a2df030"/></dir><dir name="Catalog"><dir name="Product"><dir name="Edit"><dir name="Tab"><file name="Crosssell.php" hash="4eacb2e01e0ec6ead7109fe696fc2e23"/><file name="Related.php" hash="3469e281271de8f9457f82fdc90ca104"/></dir><file name="Tabs.php" hash="aa26d6e9e585117100e983616e6a0afa"/></dir></dir></dir><dir name="Product"><dir name="List"><file name="Related.php" hash="10398409402120307ec7f24b7d396b40"/><file name="Upsell.php" hash="4edc3dd9e8cb5e946a0309494bc53e99"/></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Apikey.php" hash="fae5b45d9eace7c2934b9f70f5ec6c8e"/><file name="Apikeyurl.php" hash="5ce3031fd84f912b3552d7c37f2a04ac"/><file name="Cancelbutton.php" hash="070131f41c4969cf51917b486e487b26"/><file name="Updatebutton.php" hash="2a370f132bc2b6fc5d21f2f477b6115e"/></dir><file name="Form.php" hash="de1c3b70b03ac09fe1d5c7cd7613feb1"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="11fc78bfbae0c85e8acc512d3978efea"/><dir name="Pest"><file name="PestJSON.php" hash="95059011a55bd0036c5029ba5b2d0f0c"/><file name="PestXML.php" hash="7e8e2a8c75b8a58d11bef9c47b4e960d"/></dir><file name="Pest.php" hash="15ac0a66957144f848b067c11710204d"/></dir><dir name="Model"><dir name="AdminNotification"><file name="Feed.php" hash="bf32debf65f8e5ca5371843333730b02"/></dir><dir name="Product"><file name="Link.php" hash="0e08ed99339e2acd77cce3e738cdbfae"/></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><dir name="Product"><dir name="Link"><dir name="Product"><file name="Collection.php" hash="ebf570a39f98b982d09a60f3af1768df"/></dir></dir><file name="Link.php" hash="0910e13e6a3b3cac3573a4ea1df59e9f"/></dir></dir></dir><dir name="Mysql4"><file name="Setup.php" hash="79f3bcb4122135514d6f68f3db50b9f1"/></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Upsellsource.php" hash="34ed5e3c61bd288340b7de3809953ad3"/></dir></dir></dir></dir><dir name="controllers"><file name="AccountController.php" hash="05af8f614f7822b480b9b9e55b25d45e"/><file name="IndexController.php" hash="ef4908d883c30972e490f67d9d9cbe3d"/><file name="ProductController.php" hash="fb4235ad3604eaeaee7e8e0e1fe71f04"/></dir><dir name="etc"><file name="config.xml" hash="04a9fc655ef9e6875450cb20fa0461bd"/><file name="system.xml" hash="089389d636f112dbead01f1be6c656a8"/></dir><dir name="sql"><dir name="recommender_setup"><file name="mysql4-install-0.9.3.php" hash="d72ccc127f8f2ccef5216e7eaf62babc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="recommender.xml" hash="f19e768264b836355637a61d6a1463f5"/></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="commercestack"><dir name="adminhtml"><file name="recommender.js" hash="6e99f78c4b6e495401cdb4ece6f699ca"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="CommerceStack_Recommender.xml" hash="c0faaf57bb93c70fe6ba45e68c96fc11"/></dir></target></contents>
|
22 |
<compatible/>
|
23 |
<dependencies><required><php><min>5.2.13</min><max>5.4.0</max></php></required></dependencies>
|
24 |
</package>
|