Feature Pack 7 or later

Troubleshooting: Auto-suggested keywords not responding

Auto-suggested keywords might not respond when clicked in the storefront

Problem

When a shopper clicks auto-suggested keywords in the storefront, the search is not performed. This behavior might occur more frequently on low performance machines.

Solution

To resolve this issue, increase the auto-suggest timeout value to a higher value. For example, to change it to 300:
  1. Open the WCDE_installdir/workspace/Stores/WebContent/storedir/javascript/Widgets/Search.js file for editing.
  2. Locate the following snippet:
    _onBlur:function(evt){
      clearTimeout(this.searchSuggestionHoverTimeout);
      this.searchSuggestionHoverTimeout = setTimeout("SearchJS.showAutoSuggest(false)",100);
    },
    
  3. Replace it with the following snippet:
    _onBlur:function(evt){
      clearTimeout(this.searchSuggestionHoverTimeout);
      this.searchSuggestionHoverTimeout = setTimeout("SearchJS.showAutoSuggest(false)",300);
    },
  4. Save your changes and close the file.
  5. Deploy the changes for the JSP files you updated. For more information, see Deploying J2EE assets for a single file.