Close

Disable advance search in 4.1

abdulwahe
5 years ago
#14919 Quote
Avatar
  • 10
How we can disable advance search in version 4.1 by default. I am using Nop Instant Search plugin.

In 3.9 I did it by changing code in a file plugins\SevenSpikes.Nop.Plugins.InstantSearch
View\InstantSearch.cshtml

The change is Search?adv=true to Search?adv=false

windows.location.href = "@url.RouterUr("HomePage")" + "Search?adv=true&cid=" + selectedCatagory + "&q"+ encodeURLComponent(searchItem) + "&[email protected]&isc=true";
abdulwahe
anton_ivanov
5 years ago
#14933 Quote
Avatar
  • Moderator
  • 277
Hello,

The advanced search is enabled when a Search Option is chosen or the Search in Descriptions setting is checked in the Administration -> Nop-Templates -> Plugins -> Instant Search -> Settings page.

If you don't select a search option and uncheck the search in descriptions setting you won't have the advanced search enabled.

Hope that helps!
Regards,
Anton Ivanov
Nop-Templates.com