IREUS_Recommendation_Engine_Interface - Version 2.2.5

Version Notes

Log out and log in after install to get access to the configuration interface! You will find it in the menu [System -> Configuration -> IREUS Recommendation Engine]

Download this release

Release Info

Developer Magento Core Team
Extension IREUS_Recommendation_Engine_Interface
Version 2.2.5
Comparing to
See all releases


Code changes from version 2.2.4 to 2.2.5

app/code/community/Netresearch/Ireus/Block/Data.php CHANGED
@@ -342,9 +342,9 @@ class Netresearch_Ireus_Block_Data extends Mage_Core_Block_Template
342
  $return['pid'] = $this->getLatestAddedProductId();
343
  $return['e'] = 'basket';
344
  }
345
- else
346
  {
347
- $return['cid'] = "";
348
  $return['e'] = 'home';
349
  }
350
  break;
342
  $return['pid'] = $this->getLatestAddedProductId();
343
  $return['e'] = 'basket';
344
  }
345
+ else
346
  {
347
+ $return['cid'] = '';
348
  $return['e'] = 'home';
349
  }
350
  break;
app/design/frontend/default/default/layout/ireus.xml CHANGED
@@ -66,8 +66,8 @@
66
  <block type="ireus/data" name="ireus_products" after="-" as="ireus_products" template="ireus/userrecomm.phtml"/>
67
  </reference>
68
  <reference name="before_body_end">
69
- <block type="ireus/data" name="ireus_databasket" before="ireus_datauser" as="ireus_databasket" template="ireus/data.phtml"/>
70
  <block type="ireus/data" name="ireus_datauser" before="ireus_footer" as="ireus_datauser" template="ireus/data.phtml"/>
 
71
  <block type="ireus/data" name="ireus_footer" after="-" as="ireus_footer" template="ireus/footer.phtml"/>
72
  </reference>
73
  </checkout_cart_index>
66
  <block type="ireus/data" name="ireus_products" after="-" as="ireus_products" template="ireus/userrecomm.phtml"/>
67
  </reference>
68
  <reference name="before_body_end">
 
69
  <block type="ireus/data" name="ireus_datauser" before="ireus_footer" as="ireus_datauser" template="ireus/data.phtml"/>
70
+ <block type="ireus/data" name="ireus_databasket" before="ireus_datauser" as="ireus_databasket" template="ireus/data.phtml"/>
71
  <block type="ireus/data" name="ireus_footer" after="-" as="ireus_footer" template="ireus/footer.phtml"/>
72
  </reference>
73
  </checkout_cart_index>
lib/Ireus/Model/Csv.php CHANGED
@@ -47,17 +47,21 @@ class Ireus_Model_Csv extends Ireus_Object
47
 
48
  # Read first line of csv file to catch the header
49
  $header = fgetcsv($handle, 0, $delimiter);
 
50
 
51
  # Read the rest of the csv file to catch the data
52
  while (!feof($handle)) {
53
  $line = fgetcsv($handle, 0, $delimiter, $quoting);
54
 
55
- # built array
56
- $array = array();
57
- foreach ($header as $key => $val) {
58
- $array[$val] = $line[$key];
 
 
 
 
59
  }
60
- $data[] = $array;
61
  }
62
 
63
  # Close the handle
47
 
48
  # Read first line of csv file to catch the header
49
  $header = fgetcsv($handle, 0, $delimiter);
50
+ $headercount = count($header);
51
 
52
  # Read the rest of the csv file to catch the data
53
  while (!feof($handle)) {
54
  $line = fgetcsv($handle, 0, $delimiter, $quoting);
55
 
56
+ if (count($line) == $headercount
57
+ ) {
58
+ # built array
59
+ $array = array();
60
+ foreach ($header as $key => $val) {
61
+ $array[$val] = $line[$key];
62
+ }
63
+ $data[] = $array;
64
  }
 
65
  }
66
 
67
  # Close the handle
lib/Ireus/Model/File.php CHANGED
@@ -42,16 +42,20 @@ class Ireus_Model_File extends Ireus_Object
42
  }
43
 
44
  $files = glob($dir . '*', GLOB_MARK);
45
- foreach ($files as $file)
46
- {
47
- if (is_dir($file)
48
- ) {
49
- self::deleteDirectory($file);
50
- }
51
- else
52
- {
53
- unlink($file);
54
- }
 
 
 
 
55
  }
56
 
57
  if (is_dir($dir)
42
  }
43
 
44
  $files = glob($dir . '*', GLOB_MARK);
45
+
46
+ if (count($files) > 0
47
+ ) {
48
+ foreach ($files as $file)
49
+ {
50
+ if (is_dir($file)
51
+ ) {
52
+ self::deleteDirectory($file);
53
+ }
54
+ else
55
+ {
56
+ unlink($file);
57
+ }
58
+ }
59
  }
60
 
61
  if (is_dir($dir)
package.xml CHANGED
@@ -1,12 +1,12 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>IREUS_Recommendation_Engine_Interface</name>
4
- <version>2.2.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL V3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Impoves caching of static recommendations for SEO and recommendation statistics; Decreases the download time of product and catalog data;</summary>
10
  <description>With prudsys IREUS - the real-time recommendation engine of the Data Mining specialist prudsys - you can customise the product recommendations in your online shop. Using the click behaviour prudsys IREUS can determine each visitor's current buying interest in real-time and recommend products that are highly relevant based on this.
11
 
12
  Your benefit: Increasing the conversion rate and revenue from your online shop.
@@ -18,9 +18,9 @@ prudsys IREUS is based on the prudsys Realtime Decisioning Engine (prudsys RDE),
18
  The registration for prudsys IREUS is free of charge at: www.ireus.net.</description>
19
  <notes>Log out and log in after install to get access to the configuration interface! You will find it in the menu [System -&gt; Configuration -&gt; IREUS Recommendation Engine]</notes>
20
  <authors><author><name>prudsys IREUS Support Team</name><user>auto-converted</user><email>support@ireus.net</email></author></authors>
21
- <date>2010-11-30</date>
22
- <time>12:54:58</time>
23
- <contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="ireus.xml" hash="d2a0f76c8917d6891423029acd1db2a4"/></dir><dir name="template"><dir name="ireus"><file name="data.phtml" hash="914c75fc9f1f09b3ec914a5aa12e1a71"/><file name="footer.phtml" hash="4f8718b50744c98cec9d1ffce31e2242"/><file name="recomm.phtml" hash="c56c8aa10531782cb0237a5cd7a715ad"/><file name="userrecomm.phtml" hash="879f8c79109f82ceff8a3c03d0c3ce1b"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="lib"><dir name="Ireus"><file name="Object.php" hash="cf2c29389d0ae7c04858d763e074e4f3"/><dir name="Controller"><file name="Cache.php" hash="3df552a3caf67a320e7088f499bf3534"/><file name="Export.php" hash="389b64cb5ae302090f07f71ff937dd86"/></dir><dir name="Model"><file name="Csv.php" hash="925df2eec3f91eef4916ec8b40c01253"/><file name="File.php" hash="24afa81bbeabf0261eaae12ccda94193"/></dir><dir name="View"><file name="Client.php" hash="c1739c7d943f63863a2bd7b546db3a6a"/><dir name="Client"><file name="call.tpl.php" hash="75da798d5fd4d21208fe636a12b3085c"/><file name="event.tpl.php" hash="d3ae7d342b6805f94e61b10aff601c10"/><file name="home.tpl.php" hash="966b74dae389541a20366d54fb8cb63c"/><file name="product.tpl.php" hash="ceba16f08b72b43f84378cdc22094492"/><file name="user.tpl.php" hash="966b74dae389541a20366d54fb8cb63c"/></dir></dir></dir><file name="IreusAutoloader.php" hash="4c6d6bec65a2d8f196e3a9d3b94114b8"/></dir></target><target name="mageetc"><dir name="modules"><file name="Netresearch_Ireus.xml" hash="51f0d7dfc505541ad5bbd81cac334a4c"/></dir></target><target name="magecommunity"><dir name="Netresearch"><dir name="Ireus"><dir name="Block"><file name="Data.php" hash="3ff307908696c365004c97da627fd70d"/><dir name="Catalog"><dir name="Product"><dir name="List"><file name="Upsell.php" hash="2063a8463153a5e74ab11333f6112c74"/></dir></dir></dir><dir name="Checkout"><dir name="Multishipping"><file name="Success.php" hash="72495e9ef43ab32d78ac9b225ad25e7b"/></dir></dir></dir><dir name="controllers"><file name="ExportController.php" hash="b4ee2c7737a2977d042b3ce64785898d"/></dir><dir name="etc"><file name="config.xml" hash="7f84d0b692e329b9c3b9bedbad2af2b9"/><file name="system.xml" hash="e16445be0775c0d7928080f6a8f20c12"/></dir><dir name="Helper"><file name="Data.php" hash="166807c6ae52889ee30ae9d5d9760f06"/></dir><dir name="Model"><file name="Observer.php" hash="1722435a09f1ec005ea85831f1efd9b8"/></dir></dir></dir></target></contents>
24
  <compatible/>
25
  <dependencies/>
26
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>IREUS_Recommendation_Engine_Interface</name>
4
+ <version>2.2.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL V3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Version update for Magento 1.4.2.0 compatibility</summary>
10
  <description>With prudsys IREUS - the real-time recommendation engine of the Data Mining specialist prudsys - you can customise the product recommendations in your online shop. Using the click behaviour prudsys IREUS can determine each visitor's current buying interest in real-time and recommend products that are highly relevant based on this.
11
 
12
  Your benefit: Increasing the conversion rate and revenue from your online shop.
18
  The registration for prudsys IREUS is free of charge at: www.ireus.net.</description>
19
  <notes>Log out and log in after install to get access to the configuration interface! You will find it in the menu [System -&gt; Configuration -&gt; IREUS Recommendation Engine]</notes>
20
  <authors><author><name>prudsys IREUS Support Team</name><user>auto-converted</user><email>support@ireus.net</email></author></authors>
21
+ <date>2011-01-31</date>
22
+ <time>13:56:33</time>
23
+ <contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="ireus.xml" hash="485d54174216a9e94542a07fae46c000"/></dir><dir name="template"><dir name="ireus"><file name="data.phtml" hash="914c75fc9f1f09b3ec914a5aa12e1a71"/><file name="footer.phtml" hash="4f8718b50744c98cec9d1ffce31e2242"/><file name="recomm.phtml" hash="c56c8aa10531782cb0237a5cd7a715ad"/><file name="userrecomm.phtml" hash="879f8c79109f82ceff8a3c03d0c3ce1b"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="lib"><dir name="Ireus"><file name="Object.php" hash="cf2c29389d0ae7c04858d763e074e4f3"/><dir name="Controller"><file name="Cache.php" hash="3df552a3caf67a320e7088f499bf3534"/><file name="Export.php" hash="389b64cb5ae302090f07f71ff937dd86"/></dir><dir name="Model"><file name="Csv.php" hash="2a5e666173e3f5f7cbcc838c6ac7e607"/><file name="File.php" hash="70a796322ba8c1dcbd1c60944b7e95db"/></dir><dir name="View"><file name="Client.php" hash="c1739c7d943f63863a2bd7b546db3a6a"/><dir name="Client"><file name="call.tpl.php" hash="75da798d5fd4d21208fe636a12b3085c"/><file name="event.tpl.php" hash="d3ae7d342b6805f94e61b10aff601c10"/><file name="home.tpl.php" hash="966b74dae389541a20366d54fb8cb63c"/><file name="product.tpl.php" hash="ceba16f08b72b43f84378cdc22094492"/><file name="user.tpl.php" hash="966b74dae389541a20366d54fb8cb63c"/></dir></dir></dir><file name="IreusAutoloader.php" hash="4c6d6bec65a2d8f196e3a9d3b94114b8"/></dir></target><target name="mageetc"><dir name="modules"><file name="Netresearch_Ireus.xml" hash="51f0d7dfc505541ad5bbd81cac334a4c"/></dir></target><target name="magecommunity"><dir name="Netresearch"><dir name="Ireus"><dir name="Block"><file name="Data.php" hash="7c8657af854248d2eef953e26dbbf3e8"/><dir name="Catalog"><dir name="Product"><dir name="List"><file name="Upsell.php" hash="2063a8463153a5e74ab11333f6112c74"/></dir></dir></dir><dir name="Checkout"><dir name="Multishipping"><file name="Success.php" hash="72495e9ef43ab32d78ac9b225ad25e7b"/></dir></dir></dir><dir name="controllers"><file name="ExportController.php" hash="b4ee2c7737a2977d042b3ce64785898d"/></dir><dir name="etc"><file name="config.xml" hash="7f84d0b692e329b9c3b9bedbad2af2b9"/><file name="system.xml" hash="e16445be0775c0d7928080f6a8f20c12"/></dir><dir name="Helper"><file name="Data.php" hash="166807c6ae52889ee30ae9d5d9760f06"/></dir><dir name="Model"><file name="Observer.php" hash="1722435a09f1ec005ea85831f1efd9b8"/></dir></dir></dir></target></contents>
24
  <compatible/>
25
  <dependencies/>
26
  </package>