1

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 enter image description here

6
  • are you using any extension for auto search?
    – Piyush
    Oct 3, 2017 at 5:41
  • no... i m not using any extension Oct 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)
    – Piyush
    Oct 3, 2017 at 5:46
  • is there any solution to remove these terms Oct 3, 2017 at 5:48
  • you want to clear them or don't want to display in suggestion?
    – Piyush
    Oct 3, 2017 at 5:49

2 Answers 2

3

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-

  1. Go to System -> Configuration
  2. Select catalog beneath Catalog tab from left navigation tab
  3. Now select Catalog Search
  4. 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');
13
  • 1
    there 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
    try this answer to remove them -stackoverflow.com/a/8688427/4349218
    – Piyush
    Oct 3, 2017 at 6:07
  • 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
  • do you have access to the code?
    – Piyush
    Oct 3, 2017 at 6:13
  • 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
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.