Close

Issue - Double product animation returns on search

iqnetcom
12 years ago
#1459 Quote
Avatar
  • 10
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



IvanStoyanov
12 years ago
#1461 Quote
Avatar
  • 269
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
Thank you for choosing our products! Your feedback is important to us!
iqnetcom
12 years ago
#1463 Quote
Avatar
  • 10
Great!  I disabled the catalogsettings.productsearchautocompleteenabled setting under the admin "All settings (Advanced)" and it solved the problem.

Thanks!