Version Notes
Searchautocomplete
Download this release
Release Info
Developer | Magento Core Team |
Extension | Searchautocomplete |
Version | 0.0.12 |
Comparing to | |
See all releases |
Code changes from version 0.0.11 to 0.0.12
app/code/local/Kanavan/Searchautocomplete/Block/Suggest.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<?php
|
2 |
class Kanavan_Searchautocomplete_Block_Suggest extends Mage_Core_Block_Template
|
3 |
{
|
4 |
-
|
5 |
public function _prepareLayout()
|
6 |
{
|
7 |
return parent::_prepareLayout();
|
@@ -37,7 +36,7 @@ class Kanavan_Searchautocomplete_Block_Suggest extends Mage_Core_Block_Template
|
|
37 |
|
38 |
// $results=Mage::getResourceModel('catalogsearch/search_collection')->addSearchFilter(Mage::app()->getRequest()->getParam('q'));
|
39 |
|
40 |
-
|
41 |
|
42 |
|
43 |
if(Mage::getStoreConfig('searchautocomplete/preview/number_product'))
|
@@ -53,6 +52,8 @@ class Kanavan_Searchautocomplete_Block_Suggest extends Mage_Core_Block_Template
|
|
53 |
$results->addAttributeToSelect('thumbnail');
|
54 |
$results->addAttributeToSelect('small_image');
|
55 |
$results->addAttributeToSelect('url_key');
|
|
|
|
|
56 |
return $results;
|
57 |
}
|
58 |
public function enabledSuggest()
|
1 |
<?php
|
2 |
class Kanavan_Searchautocomplete_Block_Suggest extends Mage_Core_Block_Template
|
3 |
{
|
|
|
4 |
public function _prepareLayout()
|
5 |
{
|
6 |
return parent::_prepareLayout();
|
36 |
|
37 |
// $results=Mage::getResourceModel('catalogsearch/search_collection')->addSearchFilter(Mage::app()->getRequest()->getParam('q'));
|
38 |
|
39 |
+
$results->addAttributeToFilter('visibility', array('neq' => 1));
|
40 |
|
41 |
|
42 |
if(Mage::getStoreConfig('searchautocomplete/preview/number_product'))
|
52 |
$results->addAttributeToSelect('thumbnail');
|
53 |
$results->addAttributeToSelect('small_image');
|
54 |
$results->addAttributeToSelect('url_key');
|
55 |
+
|
56 |
+
|
57 |
return $results;
|
58 |
}
|
59 |
public function enabledSuggest()
|
app/code/local/Kanavan/Searchautocomplete/etc/config.xml
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Kanavan_Searchautocomplete>
|
13 |
-
<version>0.0.
|
14 |
</Kanavan_Searchautocomplete>
|
15 |
</modules>
|
16 |
<frontend>
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Kanavan_Searchautocomplete>
|
13 |
+
<version>0.0.12</version>
|
14 |
</Kanavan_Searchautocomplete>
|
15 |
</modules>
|
16 |
<frontend>
|
app/design/frontend/default/default/template/searchautocomplete/suggest.phtml
CHANGED
@@ -13,7 +13,7 @@ foreach($suggests as $_suggest)
|
|
13 |
if($results->count()&&$this->enabledPreview())
|
14 |
foreach($results as $pro)
|
15 |
{
|
16 |
-
//$pro=Mage::getModel('catalog/product')->load($
|
17 |
echo "<li class=\"preview\" ><a href=\"{$pro->getProductUrl()}\">";
|
18 |
if($this->isShowImage())
|
19 |
{
|
13 |
if($results->count()&&$this->enabledPreview())
|
14 |
foreach($results as $pro)
|
15 |
{
|
16 |
+
//$pro=Mage::getModel('catalog/product')->load($pro->getId());
|
17 |
echo "<li class=\"preview\" ><a href=\"{$pro->getProductUrl()}\">";
|
18 |
if($this->isShowImage())
|
19 |
{
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Searchautocomplete</name>
|
4 |
-
<version>0.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>Search auto complete support resuft preview. Change result style on backend.</description>
|
11 |
<notes>Searchautocomplete</notes>
|
12 |
<authors><author><name>Kanavan</name><user>auto-converted</user><email>sang@kanavan.net</email></author></authors>
|
13 |
-
<date>2012-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Kanavan"><dir name="Searchautocomplete"><dir name="Block"><file name="Ajaxsearch.php" hash="5047292020c9583014428b67496e28a7"/><file name="Suggest.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><package><name>Searchautocomplete</name><channel>community</channel><min>0.0.1</min><max>5.0.0</max></package></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Searchautocomplete</name>
|
4 |
+
<version>0.0.12</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Search auto complete support resuft preview. Change result style on backend.</description>
|
11 |
<notes>Searchautocomplete</notes>
|
12 |
<authors><author><name>Kanavan</name><user>auto-converted</user><email>sang@kanavan.net</email></author></authors>
|
13 |
+
<date>2012-09-20</date>
|
14 |
+
<time>13:56:24</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Kanavan"><dir name="Searchautocomplete"><dir name="Block"><file name="Ajaxsearch.php" hash="5047292020c9583014428b67496e28a7"/><file name="Suggest.php" hash="b2430b5dbb018d26a795390e0d710bef"/></dir><dir name="Helper"><file name="Data.php" hash="76b8f41718b4c2e40687a01d2bd2fd7e"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Ajaxsearch"><file name="Collection.php" hash="1fc0d4a1385e74b28865eff2ca1e3e94"/></dir><file name="Ajaxsearch.php" hash="ea71560960a3ca6aa4f24ffb274de741"/></dir><dir name="Source"><file name="Effect.php" hash="0a9dbd10ed43d47099f9ceb00d20978b"/></dir><file name="Ajaxsearch.php" hash="476d278e22ca5d42c4eb564afff09b54"/><file name="Status.php" hash="ff2537ea38d78b9343ba7970cd3c8d3b"/></dir><dir name="controllers"><file name="SuggestController.php" hash="1807b4240cdd403a194d940d1266b763"/></dir><dir name="etc"><file name="config.xml" hash="e63d90215c44e4b0d6d0f87b95981fdc"/><file name="system.xml" hash="56bd22feb456e5acede1c01c728203cb"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Kanavan_Searchautocomplete.xml" hash="b307375dc2c1b410fdaad5c845729dd1"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="searchautocomplete.xml" hash="675c8528d4023c0f4752cb11b859fc41"/></dir><dir name="template"><dir name="searchautocomplete"><file name="blank.phtml" hash="7949696b79643341359508a6d6d64921"/><file name="suggest.phtml" hash="2026d9fc425c02e79bae930596327477"/><file name="topsearch.phtml" hash="489eaa622b3189a0ef18e8591e12ef95"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><package><name>Searchautocomplete</name><channel>community</channel><min>0.0.1</min><max>5.0.0</max></package></required></dependencies>
|
18 |
</package>
|