Expertrec_Recommendation - Version 1.2.2

Version Notes

Expertrec Recommendation plugin for magento sites.

Download this release

Release Info

Developer melchi
Extension Expertrec_Recommendation
Version 1.2.2
Comparing to
See all releases


Code changes from version 1.2.1 to 1.2.2

app/code/community/Expertrec/Recommendation/Model/Feed/Feedcreator.php CHANGED
@@ -104,21 +104,28 @@ class Expertrec_Recommendation_Model_Feed_Feedcreator {
104
  }else{
105
  $header = array();
106
  }
107
- if (isset($storedFilters)){
108
- $filter = explode(',', $storedFilters);
109
- }
110
- else{
111
- $filter = array();
112
- }
113
 
114
  if(empty($header)){
115
  Mage::getSingleton('expertrec_recommendation/log')->log("Headers are not selected. Go to the info page,select headers and try again.");
116
  return false;
117
  }
118
 
119
- $totalHeaders = array_merge($header,$filter);
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  //setting header fields array to this, so we can use it later
121
- $this->_ofields=array_merge($header,$filter);
122
 
123
  //writing header row
124
  $this->_oWriter->setHeader($totalHeaders)->writeHeaderRow();
104
  }else{
105
  $header = array();
106
  }
 
 
 
 
 
 
107
 
108
  if(empty($header)){
109
  Mage::getSingleton('expertrec_recommendation/log')->log("Headers are not selected. Go to the info page,select headers and try again.");
110
  return false;
111
  }
112
 
113
+ // checking for filters
114
+ if(isset($storedFilters)){
115
+ if (empty($storedFilters)){
116
+ $totalHeaders = $header;
117
+ }
118
+ else{
119
+ $filter = explode(',', $storedFilters);
120
+ $totalHeaders = array_merge($header,$filter);
121
+ }
122
+ }
123
+ else{
124
+ $totalHeaders = $header;
125
+ }
126
+
127
  //setting header fields array to this, so we can use it later
128
+ $this->_ofields = $totalHeaders;
129
 
130
  //writing header row
131
  $this->_oWriter->setHeader($totalHeaders)->writeHeaderRow();
app/code/community/Expertrec/Recommendation/controllers/ApiController.php CHANGED
@@ -25,7 +25,7 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
25
  const MERCHANT_ID = 'expertrec/general/mid';
26
 
27
 
28
- const BUILD_NO = "1487660408";
29
  private $_password;
30
 
31
  //main function which loads the feed API
25
  const MERCHANT_ID = 'expertrec/general/mid';
26
 
27
 
28
+ const BUILD_NO = "1489406000";
29
  private $_password;
30
 
31
  //main function which loads the feed API
app/code/community/Expertrec/Recommendation/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Expertrec_Recommendation>
5
- <version>1.2.1</version>
6
  </Expertrec_Recommendation>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Expertrec_Recommendation>
5
+ <version>1.2.2</version>
6
  </Expertrec_Recommendation>
7
  </modules>
8
  <global>
app/code/community/Expertrec/Recommendation/sql/expertrec_setup/{mysql4-install-1.2.1.php → mysql4-install-1.2.2.php} RENAMED
@@ -1,20 +1,21 @@
1
  <?php
2
 
3
  //echo 'Installing extension: '.get_class($this)."\n <br /> \n";
4
- Mage::log("Installing magento : 1.2.1");
5
-
6
 
7
  $installer = $this;
8
-
9
- $host = $_SERVER['HTTP_HOST'];
10
- $uri = $_SERVER['REQUEST_URI'];
11
-
12
  $installer->startSetup();
13
 
14
  $result =array();
15
-
16
- //Status
17
  $result['status'] = "Installed";
 
 
 
 
18
  //Subdomain
19
  $result['site_subdomain'] = $uri;
20
  //hostname
1
  <?php
2
 
3
  //echo 'Installing extension: '.get_class($this)."\n <br /> \n";
4
+ // Mage::log("Installing magento : 1.2.2");
 
5
 
6
  $installer = $this;
7
+ $mage_ver = Mage::getVersion();
8
+ $host = $_SERVER['HTTP_HOST'];
9
+ $uri = $_SERVER['REQUEST_URI'];
 
10
  $installer->startSetup();
11
 
12
  $result =array();
13
+ //install/upgrade status
 
14
  $result['status'] = "Installed";
15
+ //magento version
16
+ $result['mage_ver'] = $mage_ver;
17
+ //expertrec version
18
+ $result['expertrec_ver'] = '1.2.2';
19
  //Subdomain
20
  $result['site_subdomain'] = $uri;
21
  //hostname
app/code/community/Expertrec/Recommendation/sql/expertrec_setup/{mysql4-upgrade-1.2.0-1.2.1.php → mysql4-upgrade-1.2.1-1.2.2.php} RENAMED
@@ -1,10 +1,10 @@
1
  <?php
2
 
3
  //echo 'Running The Upgrade from 1.1.5 to 1.1.6 : '.get_class($this)."\n <br /> \n";
4
- Mage::log("Running The Upgrade to 1.2.1 : ".get_class($this));
5
 
6
  $installer = $this;
7
-
8
  $host = $_SERVER['HTTP_HOST'];
9
  $uri = $_SERVER['REQUEST_URI'];
10
 
@@ -14,6 +14,10 @@ $installer->startSetup();
14
  $result =array();
15
  //status
16
  $result['status'] = "Upgraded";
 
 
 
 
17
  //hostname
18
  $result['site_host'] = $host;
19
  //Subdomain
1
  <?php
2
 
3
  //echo 'Running The Upgrade from 1.1.5 to 1.1.6 : '.get_class($this)."\n <br /> \n";
4
+ // Mage::log("Running The Upgrade to 1.2.1 : ".get_class($this));
5
 
6
  $installer = $this;
7
+ $mage_ver = Mage::getVersion();
8
  $host = $_SERVER['HTTP_HOST'];
9
  $uri = $_SERVER['REQUEST_URI'];
10
 
14
  $result =array();
15
  //status
16
  $result['status'] = "Upgraded";
17
+ //magento version
18
+ $result['mage_ver'] = $mage_ver;
19
+ //expertrec version
20
+ $result['expertrec_ver'] = '1.2.2';
21
  //hostname
22
  $result['site_host'] = $host;
23
  //Subdomain
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Expertrec_Recommendation</name>
4
- <version>1.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Expertrec search extension helps you have complete control over your site search results. You will be able to add instant autocomplete, spell corrections that learn from the user behaviour on your site, and show product recommendations within the search user interface. It also adds search results pages with facets, sorting by different attributes.</description>
11
  <notes>Expertrec Recommendation plugin for magento sites.</notes>
12
  <authors><author><name>melchi</name><user>melchi</user><email>magento@cloudinfra.in</email></author><author><name>magento</name><user>magento</user><email>magento-team@cloudinfra.in</email></author></authors>
13
- <date>2017-02-21</date>
14
- <time>07:10:46</time>
15
- <contents><target name="magecommunity"><dir name="Expertrec"><dir name="Recommendation"><dir name="Block"><file name="Api.php" hash="ce87654622f030c6e8b5a992713da5d8"/></dir><dir name="Helper"><file name="Autocompletehelper.php" hash="7bd733d91f69091c1f6f5bb162467a43"/><file name="Data.php" hash="8a2760edc960d6a1bc72d80e73944cb3"/><file name="Filehelper.php" hash="5ac956e12548398dc159a16eb1a03e8b"/><dir name="Search"><file name="Layout.php" hash="c68c9d6c4def7daca0a0ae332dceaff3"/></dir><file name="Suggestionhelper.php" hash="93f3aa295761a510f782856c0180a799"/></dir><dir name="Model"><dir name="Api"><file name="Request.php" hash="7df8b22d74b6a05de86da287687a6e96"/></dir><dir name="Feed"><file name="Feedconfig.php" hash="013bd447dccc7cc4f073be5bd53a18c9"/><file name="Feedcreator.php" hash="fa6cf4590cf81073325b6717c8951486"/><file name="Feedfilter.php" hash="d7599a63a8d1f2033cb1e56204809c2d"/><file name="Formatter.php" hash="4c78f1f2eaa65a9a46f46d129f62f662"/></dir><file name="Feed.php" hash="ddac87d6a060bc77fb7718e7b19e1273"/><file name="Log.php" hash="27fcee49e67fe2be761b4af94aecff2b"/><file name="Observer.php" hash="2c332472ed4cd1ccea25bec705dbda06"/><dir name="Resource"><dir name="Mysql4"><file name="Setup.php" hash="6b660487988035cd715fa3c51b2b58b6"/></dir></dir><dir name="Translator"><file name="Category.php" hash="0050de4918d73af310008aa8f49239d1"/></dir><file name="Validate.php" hash="2d4619284f24309b77668f07cb1ef9f4"/><dir name="Writer"><file name="Abstract.php" hash="6b5153c0a09f8d4ee6fe4cedc5ec8a64"/><file name="Csv.php" hash="427fea44d988302f409e1860c18875b1"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="c4f80c214d11fd531496e71b4951b27f"/></dir><file name="ApiController.php" hash="74e39bef2528441f416dac66fe0d11d9"/><dir name="CatalogSearch"><file name="ResultController.php" hash="e740f44c0cef4aa83545f2278626e7de"/></dir><file name="ConfigController.php" hash="0fd9a9686806c26635c7db0a57a0f4ab"/><file name="IndexController.php" hash="7bfaa867dfa9bed0c7b0ebd634d2e2bb"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e86ff2b7aac4d09a4c359f0047b06ca3"/><file name="config.xml" hash="184ced1e3c10f3146c3ed758224ab0ef"/></dir><dir name="sql"><dir name="expertrec_setup"><file name="mysql4-install-1.2.1.php" hash="a9f45905ad622e14f66f893e9878d7a2"/><file name="mysql4-upgrade-1.2.0-1.2.1.php" hash="390c365fac7d48a7a8be8de5f77d5561"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Expertrec_Recommendation.xml" hash="c314465f907c89dfe912035be8d48e71"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="expertrec"><file name="recommendation.xml" hash="a1d166c3c3e665b476aaef69e0e6b792"/></dir></dir><dir name="template"><dir name="expertrec"><dir name="feed"><file name="info.phtml" hash="e386121a2d08b754ace87ab8a146e941"/></dir><dir name="recommendation"><file name="tracker.phtml" hash="6e8219c5d1e46642d7915cedaa974313"/><dir name="tracking"><file name="product.phtml" hash="e02d3f870397cf351bc0ff7ca864c7e2"/></dir></dir><dir name="search"><file name="custom.phtml" hash="0f162aa949c00329e3697f0a71abc43d"/><file name="list.phtml" hash="cda3f434a1e70f1272f62bb9f0848726"/><file name="view.phtml" hash="ecb9a55f6128bef2f10d66528dc5424b"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Expertrec_Recommendation</name>
4
+ <version>1.2.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
10
  <description>Expertrec search extension helps you have complete control over your site search results. You will be able to add instant autocomplete, spell corrections that learn from the user behaviour on your site, and show product recommendations within the search user interface. It also adds search results pages with facets, sorting by different attributes.</description>
11
  <notes>Expertrec Recommendation plugin for magento sites.</notes>
12
  <authors><author><name>melchi</name><user>melchi</user><email>magento@cloudinfra.in</email></author><author><name>magento</name><user>magento</user><email>magento-team@cloudinfra.in</email></author></authors>
13
+ <date>2017-03-13</date>
14
+ <time>11:54:08</time>
15
+ <contents><target name="magecommunity"><dir name="Expertrec"><dir name="Recommendation"><dir name="Block"><file name="Api.php" hash="ce87654622f030c6e8b5a992713da5d8"/></dir><dir name="Helper"><file name="Autocompletehelper.php" hash="7bd733d91f69091c1f6f5bb162467a43"/><file name="Data.php" hash="8a2760edc960d6a1bc72d80e73944cb3"/><file name="Filehelper.php" hash="5ac956e12548398dc159a16eb1a03e8b"/><dir name="Search"><file name="Layout.php" hash="c68c9d6c4def7daca0a0ae332dceaff3"/></dir><file name="Suggestionhelper.php" hash="93f3aa295761a510f782856c0180a799"/></dir><dir name="Model"><dir name="Api"><file name="Request.php" hash="7df8b22d74b6a05de86da287687a6e96"/></dir><dir name="Feed"><file name="Feedconfig.php" hash="013bd447dccc7cc4f073be5bd53a18c9"/><file name="Feedcreator.php" hash="34fafb9a24913a99606056f33728cf7d"/><file name="Feedfilter.php" hash="d7599a63a8d1f2033cb1e56204809c2d"/><file name="Formatter.php" hash="4c78f1f2eaa65a9a46f46d129f62f662"/></dir><file name="Feed.php" hash="ddac87d6a060bc77fb7718e7b19e1273"/><file name="Log.php" hash="27fcee49e67fe2be761b4af94aecff2b"/><file name="Observer.php" hash="2c332472ed4cd1ccea25bec705dbda06"/><dir name="Resource"><dir name="Mysql4"><file name="Setup.php" hash="6b660487988035cd715fa3c51b2b58b6"/></dir></dir><dir name="Translator"><file name="Category.php" hash="0050de4918d73af310008aa8f49239d1"/></dir><file name="Validate.php" hash="2d4619284f24309b77668f07cb1ef9f4"/><dir name="Writer"><file name="Abstract.php" hash="6b5153c0a09f8d4ee6fe4cedc5ec8a64"/><file name="Csv.php" hash="427fea44d988302f409e1860c18875b1"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="c4f80c214d11fd531496e71b4951b27f"/></dir><file name="ApiController.php" hash="9d02db7c931e0135a60a27ec4934b8f0"/><dir name="CatalogSearch"><file name="ResultController.php" hash="e740f44c0cef4aa83545f2278626e7de"/></dir><file name="ConfigController.php" hash="0fd9a9686806c26635c7db0a57a0f4ab"/><file name="IndexController.php" hash="7bfaa867dfa9bed0c7b0ebd634d2e2bb"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e86ff2b7aac4d09a4c359f0047b06ca3"/><file name="config.xml" hash="3d74632f94b325b7581d2500d6f20a53"/></dir><dir name="sql"><dir name="expertrec_setup"><file name="mysql4-install-1.2.2.php" hash="d695ecde61f37b51399c233a4a0a3b96"/><file name="mysql4-upgrade-1.2.1-1.2.2.php" hash="1020f93a657942a9adc0e8c583cc3d6a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Expertrec_Recommendation.xml" hash="c314465f907c89dfe912035be8d48e71"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="expertrec"><file name="recommendation.xml" hash="a1d166c3c3e665b476aaef69e0e6b792"/></dir></dir><dir name="template"><dir name="expertrec"><dir name="feed"><file name="info.phtml" hash="e386121a2d08b754ace87ab8a146e941"/></dir><dir name="recommendation"><file name="tracker.phtml" hash="6e8219c5d1e46642d7915cedaa974313"/><dir name="tracking"><file name="product.phtml" hash="e02d3f870397cf351bc0ff7ca864c7e2"/></dir></dir><dir name="search"><file name="custom.phtml" hash="0f162aa949c00329e3697f0a71abc43d"/><file name="list.phtml" hash="cda3f434a1e70f1272f62bb9f0848726"/><file name="view.phtml" hash="ecb9a55f6128bef2f10d66528dc5424b"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>