recolize_recommendation_engine - Version 2.1.2

Version Notes

- Product image urls are now exported store view specific

Download this release

Release Info

Developer Recolize GmbH
Extension recolize_recommendation_engine
Version 2.1.2
Comparing to
See all releases


Code changes from version 2.1.1 to 2.1.2

app/code/community/Recolize/RecommendationEngine/Model/Convert/Mapper/Column.php CHANGED
@@ -108,6 +108,8 @@ class Recolize_RecommendationEngine_Model_Convert_Mapper_Column extends Mage_Dat
108
  $row = $batchExport->getBatchData();
109
  $storeCode = $row['store'];
110
 
 
 
111
  // Apply attribute specific transformations
112
  foreach ($row as $attributeName => $attributeValue) {
113
  if ($attributeValue === null) {
@@ -116,11 +118,14 @@ class Recolize_RecommendationEngine_Model_Convert_Mapper_Column extends Mage_Dat
116
 
117
  // Generate smaller image and add full URL to export.
118
  if ($attributeName === $this->_imageAttribute) {
 
119
  $row[$this->_imageAttribute] = (string) Mage::helper('catalog/image')->init(Mage::getSingleton('catalog/product'), $attributeName, $attributeValue)
120
  ->constrainOnly(true)
121
  ->keepAspectRatio(true)
122
  ->keepFrame(false)
123
  ->resize(500);
 
 
124
  }
125
 
126
  // Always export prices with tax and use the special price instead of the price, if available.
108
  $row = $batchExport->getBatchData();
109
  $storeCode = $row['store'];
110
 
111
+ $appEmulation = Mage::getSingleton('core/app_emulation');
112
+
113
  // Apply attribute specific transformations
114
  foreach ($row as $attributeName => $attributeValue) {
115
  if ($attributeValue === null) {
118
 
119
  // Generate smaller image and add full URL to export.
120
  if ($attributeName === $this->_imageAttribute) {
121
+ $initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($row['store_id']);
122
  $row[$this->_imageAttribute] = (string) Mage::helper('catalog/image')->init(Mage::getSingleton('catalog/product'), $attributeName, $attributeValue)
123
  ->constrainOnly(true)
124
  ->keepAspectRatio(true)
125
  ->keepFrame(false)
126
  ->resize(500);
127
+
128
+ $appEmulation->stopEnvironmentEmulation($initialEnvironmentInfo);
129
  }
130
 
131
  // Always export prices with tax and use the special price instead of the price, if available.
app/code/community/Recolize/RecommendationEngine/etc/config.xml CHANGED
@@ -16,7 +16,7 @@
16
  <config>
17
  <modules>
18
  <Recolize_RecommendationEngine>
19
- <version>2.1.1</version>
20
  </Recolize_RecommendationEngine>
21
  </modules>
22
  <global>
16
  <config>
17
  <modules>
18
  <Recolize_RecommendationEngine>
19
+ <version>2.1.2</version>
20
  </Recolize_RecommendationEngine>
21
  </modules>
22
  <global>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>recolize_recommendation_engine</name>
4
- <version>2.1.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>- Optimized caching behaviour for e.g. compatibility with Varnish</notes>
12
  <authors><author><name>Recolize GmbH</name><user>recolize</user><email>admin@recolize.com</email></author></authors>
13
- <date>2016-02-22</date>
14
- <time>08:25:07</time>
15
- <contents><target name="magecommunity"><dir name="Recolize"><dir name="RecommendationEngine"><dir name="Block"><file name="Parameter.php" hash="180f6297d51910742acdf38a5243f0c3"/></dir><dir name="Helper"><file name="Data.php" hash="f259029d42b61f7505d482bd71047c5f"/></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="d1f833e5bdd27a6e7ee5ea20bedc5052"/></dir><dir name="Parser"><file name="Product.php" hash="8bda25fb519231402379bf1747046906"/></dir></dir><file name="Cookie.php" hash="99893a483414f2ebdae61a6953bc5c4b"/><dir name="Enterprise"><dir name="PageCache"><file name="Container.php" hash="916bc2217ba4961bb5c79de6d6994e60"/></dir></dir><file name="Feed.php" hash="35fe46a26f2bc85cff458d8a3a922060"/><file name="Observer.php" hash="2134e5f86125f497e01834cdb83681fd"/><file name="Session.php" hash="615ca6fd39f138d286166b191fb34259"/><file name="User.php" hash="02e1a80192a85c5e5b2a9bf8807e63b0"/></dir><dir name="data"><dir name="recolize_re_setup"><file name="data-install-2.0.1.php" hash="91325d474359f9f4bbaf5ae96954d8d6"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="f2ac8a1129641c29badeb635f7d6911c"/><file name="cache.xml" hash="8cc1d018bdecf6b21cb5c138a9efa505"/><file name="config.xml" hash="8555bff4e758744bd390519c7a9268e8"/><file name="system.xml" hash="c5cb569c7c87ed56ed8f7adec9dcf38b"/></dir><dir name="sql"><dir name="recolize_re_setup"><file name="mysql4-install-2.0.0.php" hash="cd2fcf1924cd80c155e23e0448db1712"/></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="562d936642bb97fc68b759ab254e7043"/><file name="add_to_cart_ajax.phtml" hash="8e5b043a589834922675e35084e7f2fd"/><file name="add_to_wishlist.phtml" hash="95a1e63e74daf779a908abc703c4e1c7"/><file name="add_to_wishlist_ajax.phtml" hash="153874f9548eeea5d3ad600972fec146"/><file name="category_view.phtml" hash="a7dfaac5a2303784758cbcc0aaef4e66"/><file name="checkout_success.phtml" hash="3f6f805e803d4e79b3caf7bae53c1f12"/><file name="javascript_snippet.phtml" hash="88cbb5e0837512ed60e09bd6acffa67e"/><file name="parameter.phtml" hash="b07e6134615cb63e0390e31771385dc6"/><file name="product_view.phtml" hash="2df6201012bed18d210ee34df965ff48"/></dir></dir></dir><dir name="layout"><file name="recolize_recommendation_engine.xml" hash="763f8aa1ea5e23f7eab2086ba3556a4b"/></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="f25ebed16c021391368f024268952f49"/></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>
16
  <compatible/>
17
- <dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>recolize_recommendation_engine</name>
4
+ <version>2.1.2</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>- Product image urls are now exported store view specific</notes>
12
  <authors><author><name>Recolize GmbH</name><user>recolize</user><email>admin@recolize.com</email></author></authors>
13
+ <date>2017-06-30</date>
14
+ <time>14:32:05</time>
15
+ <contents><target name="magecommunity"><dir name="Recolize"><dir name="RecommendationEngine"><dir name="Block"><file name="Parameter.php" hash="180f6297d51910742acdf38a5243f0c3"/></dir><dir name="Helper"><file name="Data.php" hash="f259029d42b61f7505d482bd71047c5f"/></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="15edbaddd2790a3cbe166dd6ecf63587"/></dir><dir name="Parser"><file name="Product.php" hash="8bda25fb519231402379bf1747046906"/></dir></dir><file name="Cookie.php" hash="99893a483414f2ebdae61a6953bc5c4b"/><dir name="Enterprise"><dir name="PageCache"><file name="Container.php" hash="916bc2217ba4961bb5c79de6d6994e60"/></dir></dir><file name="Feed.php" hash="35fe46a26f2bc85cff458d8a3a922060"/><file name="Observer.php" hash="2134e5f86125f497e01834cdb83681fd"/><file name="Session.php" hash="615ca6fd39f138d286166b191fb34259"/><file name="User.php" hash="02e1a80192a85c5e5b2a9bf8807e63b0"/></dir><dir name="data"><dir name="recolize_re_setup"><file name="data-install-2.0.1.php" hash="91325d474359f9f4bbaf5ae96954d8d6"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="f2ac8a1129641c29badeb635f7d6911c"/><file name="cache.xml" hash="8cc1d018bdecf6b21cb5c138a9efa505"/><file name="config.xml" hash="4ae17617ecad960de6cd5c12135dc985"/><file name="system.xml" hash="c5cb569c7c87ed56ed8f7adec9dcf38b"/></dir><dir name="sql"><dir name="recolize_re_setup"><file name="mysql4-install-2.0.0.php" hash="cd2fcf1924cd80c155e23e0448db1712"/></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="562d936642bb97fc68b759ab254e7043"/><file name="add_to_cart_ajax.phtml" hash="8e5b043a589834922675e35084e7f2fd"/><file name="add_to_wishlist.phtml" hash="95a1e63e74daf779a908abc703c4e1c7"/><file name="add_to_wishlist_ajax.phtml" hash="153874f9548eeea5d3ad600972fec146"/><file name="category_view.phtml" hash="a7dfaac5a2303784758cbcc0aaef4e66"/><file name="checkout_success.phtml" hash="3f6f805e803d4e79b3caf7bae53c1f12"/><file name="javascript_snippet.phtml" hash="88cbb5e0837512ed60e09bd6acffa67e"/><file name="parameter.phtml" hash="b07e6134615cb63e0390e31771385dc6"/><file name="product_view.phtml" hash="2df6201012bed18d210ee34df965ff48"/></dir></dir></dir><dir name="layout"><file name="recolize_recommendation_engine.xml" hash="763f8aa1ea5e23f7eab2086ba3556a4b"/></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="f25ebed16c021391368f024268952f49"/></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>
16
  <compatible/>
17
+ <dependencies><required><php><min>5.2.13</min><max>7.1.6</max></php></required></dependencies>
18
  </package>