Version Notes
Expertrec Recommendation plugin for magento sites.
Download this release
Release Info
Developer | melchi |
Extension | Expertrec_Recommendation |
Version | 1.1.3 |
Comparing to | |
See all releases |
Code changes from version 1.1.2 to 1.1.3
- app/code/community/Expertrec/Recommendation/Block/Product/List/Toolbar.php +12 -1
- app/code/community/Expertrec/Recommendation/Helper/Searchhelper.php +6 -1
- app/code/community/Expertrec/Recommendation/controllers/ApiController.php +1 -1
- app/code/community/Expertrec/Recommendation/etc/config.xml +1 -1
- package.xml +5 -6
app/code/community/Expertrec/Recommendation/Block/Product/List/Toolbar.php
CHANGED
@@ -11,8 +11,19 @@ class Expertrec_Recommendation_Block_Product_List_Toolbar extends Mage_Catalog_B
|
|
11 |
*/
|
12 |
public function setCollection($collection)
|
13 |
{
|
14 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
|
|
16 |
$this->_collection->setCurPage($this->getCurrentPage());
|
17 |
|
18 |
// we need to set pagination only if passed value integer and more that 0
|
11 |
*/
|
12 |
public function setCollection($collection)
|
13 |
{
|
14 |
+
$searchEnable = Mage::helper('expertrec_recommendation/searchhelper')->getSearchEnable();
|
15 |
+
$pageIdentifier = Mage::app()->getFrontController()->getAction()->getFullActionName();
|
16 |
+
$isSearchPage = $pageIdentifier === 'catalogsearch_result_index' ||
|
17 |
+
$pageIdentifier === 'expertrec_result_index';
|
18 |
+
|
19 |
+
//Don't use the toolbar when it is not the search page or when the search is not enabled
|
20 |
+
if(!$isSearchPage || !(isset($searchEnable) && $searchEnable == "true"))
|
21 |
+
{
|
22 |
+
Mage::getSingleton('expertrec_recommendation/log')->log(" Default Toolbar call made ");
|
23 |
+
return parent::setCollection($collection);
|
24 |
+
}
|
25 |
|
26 |
+
$this->_collection = $collection;
|
27 |
$this->_collection->setCurPage($this->getCurrentPage());
|
28 |
|
29 |
// we need to set pagination only if passed value integer and more that 0
|
app/code/community/Expertrec/Recommendation/Helper/Searchhelper.php
CHANGED
@@ -4,7 +4,7 @@ class Expertrec_Recommendation_Helper_Searchhelper extends Mage_Core_Helper_Abst
|
|
4 |
|
5 |
const SEARCH_LIST_API = 'search/api';
|
6 |
const SEARCH_FACET_LIST = 'search/facets_list';
|
7 |
-
|
8 |
|
9 |
protected $_facetList = array();
|
10 |
protected $_resultIds = array();
|
@@ -23,6 +23,11 @@ class Expertrec_Recommendation_Helper_Searchhelper extends Mage_Core_Helper_Abst
|
|
23 |
return $newUrl;
|
24 |
}
|
25 |
|
|
|
|
|
|
|
|
|
|
|
26 |
protected function getSearchApi($confArray){
|
27 |
|
28 |
$searchApi = "";
|
4 |
|
5 |
const SEARCH_LIST_API = 'search/api';
|
6 |
const SEARCH_FACET_LIST = 'search/facets_list';
|
7 |
+
const SEARCH_LIST_ENABLE = 'search/enable';
|
8 |
|
9 |
protected $_facetList = array();
|
10 |
protected $_resultIds = array();
|
23 |
return $newUrl;
|
24 |
}
|
25 |
|
26 |
+
public function getSearchEnable(){
|
27 |
+
$searchEnable = Mage::helper('expertrec_recommendation')->getConfig(self::SEARCH_LIST_ENABLE);
|
28 |
+
return $searchEnable;
|
29 |
+
}
|
30 |
+
|
31 |
protected function getSearchApi($confArray){
|
32 |
|
33 |
$searchApi = "";
|
app/code/community/Expertrec/Recommendation/controllers/ApiController.php
CHANGED
@@ -19,7 +19,7 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
|
|
19 |
const IMAGE_WIDTH = 'expertrec/general/expertrec_image_width';
|
20 |
const IMAGE_HEIGHT = 'expertrec/general/expertrec_image_height';
|
21 |
|
22 |
-
const BUILD_NO = "
|
23 |
private $_password;
|
24 |
|
25 |
// return websites and stores information
|
19 |
const IMAGE_WIDTH = 'expertrec/general/expertrec_image_width';
|
20 |
const IMAGE_HEIGHT = 'expertrec/general/expertrec_image_height';
|
21 |
|
22 |
+
const BUILD_NO = "1485340832";
|
23 |
private $_password;
|
24 |
|
25 |
// return websites and stores information
|
app/code/community/Expertrec/Recommendation/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Expertrec_Recommendation>
|
5 |
-
<version>1.1.
|
6 |
</Expertrec_Recommendation>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Expertrec_Recommendation>
|
5 |
+
<version>1.1.3</version>
|
6 |
</Expertrec_Recommendation>
|
7 |
</modules>
|
8 |
<global>
|
package.xml
CHANGED
@@ -1,19 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Expertrec_Recommendation</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Expertrec search engine adds instant autocomplete, spell correct, product recommendations and dynamic search results pages to your magento site's search.</summary>
|
10 |
-
<description>
|
11 |
-
</description>
|
12 |
<notes>Expertrec Recommendation plugin for magento sites.</notes>
|
13 |
<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>
|
14 |
-
<date>2017-01-
|
15 |
-
<time>
|
16 |
-
<contents><target name="magecommunity"><dir name="Expertrec"><dir name="Recommendation"><dir name="Block"><dir name="Product"><dir name="List"><file name="Toolbar.php" hash="
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Expertrec_Recommendation</name>
|
4 |
+
<version>1.1.3</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>
|
8 |
<extends/>
|
9 |
<summary>Expertrec search engine adds instant autocomplete, spell correct, product recommendations and dynamic search results pages to your magento site's search.</summary>
|
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-01-25</date>
|
14 |
+
<time>10:41:31</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Expertrec"><dir name="Recommendation"><dir name="Block"><dir name="Product"><dir name="List"><file name="Toolbar.php" hash="bd05a0d7473829c47662e6b763907ea6"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="41afd664b2087bb1f9361f2630a82bf9"/><file name="Filehelper.php" hash="5ac956e12548398dc159a16eb1a03e8b"/><dir name="Search"><file name="Layout.php" hash="d7b7ec5f4bbd846dd063934f8a267d48"/></dir><file name="Searchhelper.php" hash="f38cbcfa389661cf962cef55f4080845"/><file name="Suggestionhelper.php" hash="93f3aa295761a510f782856c0180a799"/></dir><dir name="Model"><dir name="Api"><file name="Request.php" hash="7df8b22d74b6a05de86da287687a6e96"/></dir><dir name="Catalogsearch"><file name="Layer.php" hash="1084f6aa62678d6dc102e094b74892b6"/></dir><dir name="Feed"><file name="Feedconfig.php" hash="013bd447dccc7cc4f073be5bd53a18c9"/><file name="Feedcreator.php" hash="39315afac20326fc7278d1014e0f1142"/><file name="Feedfilter.php" hash="d7599a63a8d1f2033cb1e56204809c2d"/><file name="Formatter.php" hash="e06f27ca673dc58789425ef965467275"/></dir><file name="Feed.php" hash="ddac87d6a060bc77fb7718e7b19e1273"/><file name="Log.php" hash="0d74f297e38bddff9f7c0a3cc86dce8c"/><file name="Observer.php" hash="59b33cf05ec3bf3b349cfef1aea8b84c"/><dir name="Translator"><file name="Category.php" hash="dd209cdda3a1a62042a8a3360ee2dbac"/></dir><file name="Validate.php" hash="7a5fd226b0055e39b725975113e42ee5"/><dir name="Writer"><file name="Abstract.php" hash="53ced825c40d5a6a1d4d35c6de79a68c"/><file name="Csv.php" hash="427fea44d988302f409e1860c18875b1"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="9cf617525636fba1ed4edf6befb5aeea"/></dir><file name="ApiController.php" hash="98ec77050b59c78874f2bbf76a9c42d6"/><dir name="CatalogSearch"><file name="ResultController.php" hash="9cb1406e901701ea58e663433358a4c6"/></dir><file name="ConfigController.php" hash="0094cf6ffb0410c79d9d5a5a90a31a2d"/><file name="IndexController.php" hash="e8158c90d1b342f4a262e67390bde523"/></dir><dir name="etc"><file name="adminhtml.xml" hash="189a254999463d2ea44669b58c6f0db6"/><file name="config.xml" hash="abb903ef4e3942635ec226170e69e6c5"/></dir><dir name="sql"><dir name="expertrec_setup"><file name="mysql4-install-1.0.0.php" hash="b85230589d57311ab9c8cc335d058770"/></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="29d78f020aa26eb5b5d8a2e274e60e4f"/></dir></dir><dir name="template"><dir name="expertrec"><dir name="recommendation"><file name="tracker.phtml" hash="591f8886ce547e817aa9066c85244645"/><dir name="tracking"><file name="product.phtml" hash="71d46668691668e475b9c8f418cf6cbd"/></dir></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>
|