How can i remove minimum length functionality in search

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 12 años
Hi , currently the search functionality gives an error message :Search term minimum length is 3 characters , when no keywords are entered , for instance if the category is selected and no key words are entered then the system should should display all the products within that category instead of displaying the error vice versa.
Hace 12 años
Go to admin area > settings > all settings and change 'catalogsettings.productsearchtermminimumlength' setting to any value you need
Hace 12 años
Hi , I noticed when you change the settings to 0 , the paging in search doesnt work , Can you have a look at it
Hace 12 años
Follow the next steps if you've set it to 0:

1. Open \Presentation\Nop.Web\Controllers\CatalogController.cs
2. Find 'Search' action method
3. Find and remove the following line of code
if (Request.Params["Q"] != null)


P.S. I haven't tested it but it should work
Hace 12 años
Thnx , I commented out the code , it works fine now
Hace 12 años
Hey,

How can you change the controller on a live site?

Kind regards,

borrie
Hace 12 años
You need to re-compile the project and FTP the DLL up to your \bin
Hace 12 años
Do you know which dll it is?
Hace 12 años
borrierulez wrote:
Do you know which dll it is?

Nop.Web.dll
Hace 12 años
Ok, tx already for the answers, I'm getting really close now.

I removed if (Request.Params["Q"] != null) from catalogcontroller.cs i set the minimumlenght of the keyword to 0

Now when I go to advanced search, I remove the keyword text, select the manufacturer, select the category and the search works perfectly!!! HURRAY!! :)

Now the next step would be to get to the advanced search immidiatly and remove the keyword box (because i just want to get results from the 2 dropdownboxes and not by keyword)

Do you know how to do that? From the moment i remove the advanced searchbox option and do a search I get ALL results in stead of the selected dropdownboxes...
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.