
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:
- Open the WCDE_installdir/workspace/Stores/WebContent/storedir/javascript/Widgets/Search.js file for editing.
- Locate the following snippet:
_onBlur:function(evt){ clearTimeout(this.searchSuggestionHoverTimeout); this.searchSuggestionHoverTimeout = setTimeout("SearchJS.showAutoSuggest(false)",100); },
- Replace it with the following snippet:
_onBlur:function(evt){ clearTimeout(this.searchSuggestionHoverTimeout); this.searchSuggestionHoverTimeout = setTimeout("SearchJS.showAutoSuggest(false)",300); },
- Save your changes and close the file.
- Deploy the changes for the JSP files you updated. For more information, see Deploying J2EE assets for a single file.