Version Notes
- Shortened the extension file paths to work correctly with the Magento Downloader file path length limit of 100 characters.
- The Recolize product feeds now get generated during the extension installation.
Download this release
Release Info
Developer | Recolize GmbH |
Extension | recolize_recommendation_engine |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.0 to 2.0.1
- app/code/community/Recolize/RecommendationEngine/Model/Adminhtml/System/Config/Source/{Productfeed/Comment.php → Feed.php} +1 -1
- app/code/community/Recolize/RecommendationEngine/data/recolize_re_setup/data-install-2.0.1.php +33 -0
- app/code/community/Recolize/RecommendationEngine/etc/config.xml +3 -3
- app/code/community/Recolize/RecommendationEngine/etc/system.xml +1 -1
- app/code/community/Recolize/RecommendationEngine/sql/{recolize_recommendation_engine_setup → recolize_re_setup}/mysql4-install-2.0.0.php +4 -2
- package.xml +7 -6
app/code/community/Recolize/RecommendationEngine/Model/Adminhtml/System/Config/Source/{Productfeed/Comment.php → Feed.php}
RENAMED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2015 Recolize GmbH (http://www.recolize.com)
|
12 |
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License Version 3 (GPLv3).
|
13 |
*/
|
14 |
-
class
|
15 |
{
|
16 |
/**
|
17 |
* Return the dynamic comment for the Recolize product feed export.
|
11 |
* @copyright 2015 Recolize GmbH (http://www.recolize.com)
|
12 |
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License Version 3 (GPLv3).
|
13 |
*/
|
14 |
+
class Recolize_RecommendationEngine_Model_Adminhtml_System_Config_Source_Feed extends Mage_Core_Model_Config_Data
|
15 |
{
|
16 |
/**
|
17 |
* Return the dynamic comment for the Recolize product feed export.
|
app/code/community/Recolize/RecommendationEngine/data/recolize_re_setup/data-install-2.0.1.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Recolize GmbH
|
4 |
+
*
|
5 |
+
* @section LICENSE
|
6 |
+
* This source file is subject to the GNU General Public License Version 3 (GPLv3).
|
7 |
+
*
|
8 |
+
* @category Recolize
|
9 |
+
* @package Recolize_RecommendationEngine
|
10 |
+
* @author Recolize GmbH <service@recolize.com>
|
11 |
+
* @copyright 2015 Recolize GmbH (http://www.recolize.com)
|
12 |
+
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License Version 3 (GPLv3).
|
13 |
+
*/
|
14 |
+
$storeCollection = Mage::getModel('core/store')->getCollection()
|
15 |
+
->addFieldToFilter('is_active', array('eq' => 1))
|
16 |
+
->setLoadDefault(false);
|
17 |
+
|
18 |
+
foreach ($storeCollection as $store) {
|
19 |
+
/** @var Mage_Core_Model_Store $store */
|
20 |
+
if ($store->getIsActive() == false) {
|
21 |
+
continue;
|
22 |
+
}
|
23 |
+
|
24 |
+
$feedFileName = Mage::getModel('recolize_recommendation_engine/feed')->getFeedFilename($store);
|
25 |
+
|
26 |
+
$profileName = Recolize_RecommendationEngine_Model_Feed::DATAFLOW_PROFILE_NAME_PREFIX . ' ' . $store->getName();
|
27 |
+
|
28 |
+
$profile = Mage::getModel('dataflow/profile')->load($profileName, 'name');
|
29 |
+
|
30 |
+
if ($profile->isEmpty() === false) {
|
31 |
+
$profile->run();
|
32 |
+
}
|
33 |
+
}
|
app/code/community/Recolize/RecommendationEngine/etc/config.xml
CHANGED
@@ -16,16 +16,16 @@
|
|
16 |
<config>
|
17 |
<modules>
|
18 |
<Recolize_RecommendationEngine>
|
19 |
-
<version>2.0.
|
20 |
</Recolize_RecommendationEngine>
|
21 |
</modules>
|
22 |
<global>
|
23 |
<resources>
|
24 |
-
<
|
25 |
<setup>
|
26 |
<module>Recolize_RecommendationEngine</module>
|
27 |
</setup>
|
28 |
-
</
|
29 |
</resources>
|
30 |
<models>
|
31 |
<recolize_recommendation_engine>
|
16 |
<config>
|
17 |
<modules>
|
18 |
<Recolize_RecommendationEngine>
|
19 |
+
<version>2.0.1</version>
|
20 |
</Recolize_RecommendationEngine>
|
21 |
</modules>
|
22 |
<global>
|
23 |
<resources>
|
24 |
+
<recolize_re_setup>
|
25 |
<setup>
|
26 |
<module>Recolize_RecommendationEngine</module>
|
27 |
</setup>
|
28 |
+
</recolize_re_setup>
|
29 |
</resources>
|
30 |
<models>
|
31 |
<recolize_recommendation_engine>
|
app/code/community/Recolize/RecommendationEngine/etc/system.xml
CHANGED
@@ -79,7 +79,7 @@
|
|
79 |
<fields>
|
80 |
<enable_export translate="label comment">
|
81 |
<label>Enable Product Feed</label>
|
82 |
-
<comment><model>recolize_recommendation_engine/
|
83 |
<frontend_type>select</frontend_type>
|
84 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
85 |
<sort_order>1</sort_order>
|
79 |
<fields>
|
80 |
<enable_export translate="label comment">
|
81 |
<label>Enable Product Feed</label>
|
82 |
+
<comment><model>recolize_recommendation_engine/adminhtml_system_config_source_feed</model></comment>
|
83 |
<frontend_type>select</frontend_type>
|
84 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
85 |
<sort_order>1</sort_order>
|
app/code/community/Recolize/RecommendationEngine/sql/{recolize_recommendation_engine_setup → recolize_re_setup}/mysql4-install-2.0.0.php
RENAMED
@@ -61,8 +61,10 @@ foreach ($storeCollection as $store) {
|
|
61 |
|
62 |
$feedFileName = Mage::getModel('recolize_recommendation_engine/feed')->getFeedFilename($store);
|
63 |
|
64 |
-
$
|
65 |
-
|
|
|
|
|
66 |
->setActionsXml(sprintf($profileXml, $store->getId(), $store->getId(), $feedFileName))
|
67 |
->save();
|
68 |
}
|
61 |
|
62 |
$feedFileName = Mage::getModel('recolize_recommendation_engine/feed')->getFeedFilename($store);
|
63 |
|
64 |
+
$profileName = Recolize_RecommendationEngine_Model_Feed::DATAFLOW_PROFILE_NAME_PREFIX . ' ' . $store->getName();
|
65 |
+
|
66 |
+
$profile = Mage::getModel('dataflow/profile')->load($profileName, 'name')
|
67 |
+
->setName($profileName)
|
68 |
->setActionsXml(sprintf($profileXml, $store->getId(), $store->getId(), $feedFileName))
|
69 |
->save();
|
70 |
}
|
package.xml
CHANGED
@@ -1,18 +1,19 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>recolize_recommendation_engine</name>
|
4 |
-
<version>2.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/GPL-3.0">GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>The Recolize Recommendation Engine generates personalized product recommendations.</summary>
|
10 |
<description>The Recolize Recommendation Engine is a recommendation service for shops of every size. You can integrate our extension in minutes and immediately start with personalized recommendations in your shop. No matter what size it is.</description>
|
11 |
-
<notes
|
|
|
12 |
<authors><author><name>Recolize GmbH</name><user>recolize</user><email>admin@recolize.com</email></author></authors>
|
13 |
-
<date>2015-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Recolize"><dir name="RecommendationEngine"><dir name="Helper"><file name="Data.php" hash="b8c7aef918d25bf3a6526f92a9c87943"/></dir><file name="Installation_Instructions.pdf" hash="6dbc83b65fc75a105fd49df6294f07f1"/><file name="Installationsanleitung.pdf" hash="755bda8b121e28b25c8630ce1f222ec1"/><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><php><min>5.2.13</min><max>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>recolize_recommendation_engine</name>
|
4 |
+
<version>2.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/GPL-3.0">GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>The Recolize Recommendation Engine generates personalized product recommendations.</summary>
|
10 |
<description>The Recolize Recommendation Engine is a recommendation service for shops of every size. You can integrate our extension in minutes and immediately start with personalized recommendations in your shop. No matter what size it is.</description>
|
11 |
+
<notes>- Shortened the extension file paths to work correctly with the Magento Downloader file path length limit of 100 characters.
|
12 |
+
- The Recolize product feeds now get generated during the extension installation.</notes>
|
13 |
<authors><author><name>Recolize GmbH</name><user>recolize</user><email>admin@recolize.com</email></author></authors>
|
14 |
+
<date>2015-08-06</date>
|
15 |
+
<time>10:40:52</time>
|
16 |
+
<contents><target name="magecommunity"><dir name="Recolize"><dir name="RecommendationEngine"><dir name="Helper"><file name="Data.php" hash="b8c7aef918d25bf3a6526f92a9c87943"/></dir><file name="Installation_Instructions.pdf" hash="6dbc83b65fc75a105fd49df6294f07f1"/><file name="Installationsanleitung.pdf" hash="755bda8b121e28b25c8630ce1f222ec1"/><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Feed.php" hash="2e47a8d51daf64b02646fe0516fd9449"/></dir></dir></dir></dir><dir name="Convert"><dir name="Mapper"><file name="Column.php" hash="2aab9f6b96ce7aa79713446f19eac9f6"/></dir><dir name="Parser"><file name="Product.php" hash="8bda25fb519231402379bf1747046906"/></dir></dir><file name="Feed.php" hash="38226d790f0934e94ddd64d13e82525c"/><file name="Observer.php" hash="4b20f6c601a99494360d55f401ec6e1c"/><file name="Session.php" hash="fb1aaea121d19480dc40b767ccecb160"/></dir><dir name="data"><dir name="recolize_re_setup"><file name="data-install-2.0.1.php" hash="a799aaa5d480c98ae0e71d78ed4437c7"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="f2ac8a1129641c29badeb635f7d6911c"/><file name="config.xml" hash="8ac0c64f5863b1851a2900282d44d41a"/><file name="system.xml" hash="c5cb569c7c87ed56ed8f7adec9dcf38b"/></dir><dir name="sql"><dir name="recolize_re_setup"><file name="mysql4-install-2.0.0.php" hash="510620d88c44344d92bb3e24d4f15438"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="layout"><file name="recolize_recommendation_engine.xml" hash="bed9cd00bf277ff3ed65b8c75bef0102"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="recolize"><dir name="recommendation_engine"><file name="add_to_cart.phtml" hash="6f710f7f464ddc9e6d9958c9fcaddba5"/><file name="add_to_cart_ajax.phtml" hash="8c80f51905b96013538a0ee068836d5a"/><file name="category_view.phtml" hash="145f8fc4f0538725c8f6ed7e662751da"/><file name="checkout_success.phtml" hash="3f634b1803428109e3c325317479ce11"/><file name="javascript_snippet.phtml" hash="5d25e641222d9da2f2e774718c799475"/><file name="product_view.phtml" hash="3658648080fb64817dbda3980a96d595"/></dir></dir></dir><dir name="layout"><file name="recolize_recommendation_engine.xml" hash="5ea7c7f18e45dade889795aaa4596ad7"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Recolize_RecommendationEngine.xml" hash="379b47272f4b53bb5c8632474cb3bce7"/></dir></target><target name="magelocale"><dir><dir name="de_DE"><file name="Recolize_RecommendationEngine.csv" hash="832b98fc60923a307229a679ebda0c7d"/></dir><dir name="en_US"><file name="Recolize_RecommendationEngine.csv" hash="85ec4bf3434c62b243f69edb26460ae5"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><dir name="recolize"><dir name="recommendation_engine"><file name="configuration.css" hash="2edfa2909522551ec139a7c55b1e0348"/></dir></dir></dir></dir></dir></dir></target></contents>
|
17 |
<compatible/>
|
18 |
+
<dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|