When i search a particular products the search bar shows some irrelevant suggestion in a drop down as you can see in image.It shows that products categories which doesn't exist in my store. i don't want these suggestion drop down list. Please tell me a solution to remove this dropdown list. Thanks
-
are you using any extension for auto search?– PiyushOct 3, 2017 at 5:41
-
no... i m not using any extension– Manish GaurOct 3, 2017 at 5:43
-
suggestion displayed are not the categories, this are search terms which are used to search with count (how many times customers have searched for that terms)– PiyushOct 3, 2017 at 5:46
-
is there any solution to remove these terms– Manish GaurOct 3, 2017 at 5:48
-
you want to clear them or don't want to display in suggestion?– PiyushOct 3, 2017 at 5:49
2 Answers
as per your response in comment- You can manage Search terms in admin from -
Catalog -> Search terms
Or if you don't want to display search term suggestion , you can disable it from admin at below path-
- Go to System -> Configuration
- Select catalog beneath Catalog tab from left navigation tab
- Now select Catalog Search
- And set Show Autocomplete Results Count to NO
Update : To remove search suggestion you have to change in below file-
/your_magento/app/design/frontend/your_package/your_theme/template/catalogsearch/form.mini.phtml
if this file is not there in your theme , then copy it from base/default
or rwd/default
theme to the given path
then in form.mini.phtml
file comment/delete this code
<div id="search_autocomplete" class="search-autocomplete"></div>
and this script code
searchForm.initAutocomplete('<?php echo $catalogSearchHelper->getSuggestUrl() ?>', 'search_autocomplete');
-
1there is a problem, i have done but dropdown list still exist, only count no. removed, how we can remove these dropdown list item also Oct 3, 2017 at 6:05
-
1
-
actually i am new in magento, i have only little bit knowledge of codes.. is there any other way to remove or can you help me to find out the file with proper steps Oct 3, 2017 at 6:09
-
-
right now, i have no access of codes... any there any other way from where we can solve it from admin panel Oct 3, 2017 at 6:15
when you start typing something. ajax call is sent with your keywords, and your submit button is set to disabaled, when ajax response is recived, the submit button disabaility is removed.