iqnetcom wrote:i have the instant search installed correctly but when i begin to type text into search box it flys out the products with images below search box but also there is another flyout behind it with search results without images?
How do i shut the other one off.
Go here to see an image with red arrow showing you what i mean.
http://66.55.82.108/nopanywhereslide-issue.jpg
Hi iqnetcom,
Just go to the
Views/Catalog/SearchBox.cshtml view and remove this code:
@if (Model.AutoCompleteEnabled)
{
<text>
$(function () {
$('#small-searchterms').autocomplete({
delay: 500,
minLength: @(Model.SearchTermMinimumLength.ToString()),
source: '@(Url.RouteUrl("ProductSearchAutoComplete"))',
select: function( event, ui ) {
$("#small-searchterms").val(ui.item.label);
setLocation(ui.item.producturl);
return false;
}
})
.data("autocomplete")._renderItem = function( ul, item ) {
var t = item.label;
//html encode
t = htmlEncode(t);
return $("<li></li>")
.data("item.autocomplete", item)
.append("<a>@(Model.ShowProductImagesInSearchAutoComplete ? Html.Raw("<img src='\" + item.productpictureurl + \"'>") : null )" + t + "</a>")
.appendTo(ul);
};
});
</text>
}
or disable the
catalogsettings.productsearchautocompleteenabled setting.
Have a great day!
Ivan Stoyanov