wiser_search - Version 1.0.7

Version Notes

- Now returning a new field of all categories, so people can search on all category levels

Download this release

Release Info

Developer Niels - Rejuni
Extension wiser_search
Version 1.0.7
Comparing to
See all releases


Code changes from version 1.0.6 to 1.0.7

app/code/community/Wiser/Search/Helper/ProductData.php CHANGED
@@ -19,6 +19,7 @@ class Wiser_Search_Helper_ProductData
19
  $Data['image_link_medium']= $Product->getImage() == "no_selection" ? "" : (string) Mage::helper('catalog/image')->init( $Product, 'image')->resize(320, 320);
20
  $Data['category'] = $Cats['main'];
21
  $Data['subcategory'] = $Cats['sub'];
 
22
  $Data['brand']=$Product->getResource()->getAttribute('manufacturer')->getFrontend()->getValue($Product);
23
 
24
  $parents = Mage::getResourceSingleton('catalog/product_type_configurable')->getParentIdsByChild($ProductInput);
@@ -94,6 +95,7 @@ class Wiser_Search_Helper_ProductData
94
 
95
  $main = array();
96
  $sub = array();
 
97
 
98
  foreach($Ids as $Category)
99
  {
@@ -108,9 +110,11 @@ class Wiser_Search_Helper_ProductData
108
  foreach ($CategoryModel->getParentCategories() as $parent) {
109
  if( $parent->getLevel() != 1 ) { // Don't show root category as category
110
  $catnames[] = $parent->getName();
 
111
  }
112
  }
113
  $catnames[] = $CategoryModel->getName();
 
114
 
115
  if(count($catnames) > 0 ){
116
  array_push($main, $catnames[0]);
@@ -126,6 +130,7 @@ class Wiser_Search_Helper_ProductData
126
 
127
  $Categories['main'] = implode("~", $main);
128
  $Categories['sub'] = implode("~", $sub);
 
129
 
130
  return $Categories;
131
  }
19
  $Data['image_link_medium']= $Product->getImage() == "no_selection" ? "" : (string) Mage::helper('catalog/image')->init( $Product, 'image')->resize(320, 320);
20
  $Data['category'] = $Cats['main'];
21
  $Data['subcategory'] = $Cats['sub'];
22
+ $Data['allcategories'] = $Cats['all'];
23
  $Data['brand']=$Product->getResource()->getAttribute('manufacturer')->getFrontend()->getValue($Product);
24
 
25
  $parents = Mage::getResourceSingleton('catalog/product_type_configurable')->getParentIdsByChild($ProductInput);
95
 
96
  $main = array();
97
  $sub = array();
98
+ $all = array();
99
 
100
  foreach($Ids as $Category)
101
  {
110
  foreach ($CategoryModel->getParentCategories() as $parent) {
111
  if( $parent->getLevel() != 1 ) { // Don't show root category as category
112
  $catnames[] = $parent->getName();
113
+ $all[] = $parent->getName();
114
  }
115
  }
116
  $catnames[] = $CategoryModel->getName();
117
+ $all[] = $CategoryModel->getName();
118
 
119
  if(count($catnames) > 0 ){
120
  array_push($main, $catnames[0]);
130
 
131
  $Categories['main'] = implode("~", $main);
132
  $Categories['sub'] = implode("~", $sub);
133
+ $Categories['all'] = implode("~", array_unique($all));
134
 
135
  return $Categories;
136
  }
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>wiser_search</name>
4
- <version>1.0.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/gpl-license.php">GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Quickly have your search results on screen while typing, advanced statistics and advanced layered navigation</summary>
10
  <description>Show search results to your customers while typing, indexes both products and pages. Allows the webshop administrator to view advanced search statistics.</description>
11
- <notes>- Expanded third-party extension support</notes>
12
  <authors><author><name>Niels - Rejuni</name><user>niels</user><email>niels@rejuni.nl</email></author><author><name>Remco - Rejuni</name><user>remco</user><email>remco@rejuni.nl</email></author></authors>
13
- <date>2016-03-12</date>
14
- <time>11:22:15</time>
15
- <contents><target name="magecommunity"><dir name="Wiser"><dir name="Search"><dir name="Helper"><file name="Data.php" hash="d127ac82b4dd20580f24d1bdc0eb9349"/><file name="ProductData.php" hash="a1278ab9dada0c0ba4438f47427a2186"/><file name="SimpleXml.php" hash="ee3906507dd83a9b540e5fb2afaf767e"/><file name="XmlFeed.php" hash="10a19d78c67c8cb85a5aada89ef0cf03"/></dir><dir name="Model"><file name="Observer.php" hash="d2186e3c03b3495cf6dd7d0b326a5bcb"/></dir><dir name="controllers"><file name="IndexController.php" hash="4962af21d293bba9d800a95f1bb4d6d7"/></dir><dir name="etc"><file name="config.xml" hash="263a3c00ba0d7bcb4349a313e2e6b692"/><file name="system.xml" hash="117fc73e288f9e056871ce14aaf2818a"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wiser_Search.xml" hash="4a518f78635b9e09b5b907a096b1ae91"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="wiser_search.xml" hash="f66cf33d0e88676e86bba6f0c561e485"/></dir><dir name="template"><dir name="wiser_search"><file name="conversion.phtml" hash="01671ab852225eec8384d9faae183be9"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.4.0.</min><max>7.0.2.</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>wiser_search</name>
4
+ <version>1.0.7</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/gpl-license.php">GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Quickly have your search results on screen while typing, advanced statistics and advanced layered navigation</summary>
10
  <description>Show search results to your customers while typing, indexes both products and pages. Allows the webshop administrator to view advanced search statistics.</description>
11
+ <notes>- Now returning a new field of all categories, so people can search on all category levels</notes>
12
  <authors><author><name>Niels - Rejuni</name><user>niels</user><email>niels@rejuni.nl</email></author><author><name>Remco - Rejuni</name><user>remco</user><email>remco@rejuni.nl</email></author></authors>
13
+ <date>2016-04-02</date>
14
+ <time>08:34:30</time>
15
+ <contents><target name="magecommunity"><dir name="Wiser"><dir name="Search"><dir name="Helper"><file name="Data.php" hash="d127ac82b4dd20580f24d1bdc0eb9349"/><file name="ProductData.php" hash="c25735016b815edb0ad9e6189b4e9a17"/><file name="SimpleXml.php" hash="ee3906507dd83a9b540e5fb2afaf767e"/><file name="XmlFeed.php" hash="10a19d78c67c8cb85a5aada89ef0cf03"/></dir><dir name="Model"><file name="Observer.php" hash="d2186e3c03b3495cf6dd7d0b326a5bcb"/></dir><dir name="controllers"><file name="IndexController.php" hash="4962af21d293bba9d800a95f1bb4d6d7"/></dir><dir name="etc"><file name="config.xml" hash="263a3c00ba0d7bcb4349a313e2e6b692"/><file name="system.xml" hash="117fc73e288f9e056871ce14aaf2818a"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wiser_Search.xml" hash="4a518f78635b9e09b5b907a096b1ae91"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="wiser_search.xml" hash="f66cf33d0e88676e86bba6f0c561e485"/></dir><dir name="template"><dir name="wiser_search"><file name="conversion.phtml" hash="01671ab852225eec8384d9faae183be9"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.4.0.</min><max>7.0.2.</max></php></required></dependencies>
18
  </package>