Search in the product description

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi,

can I search in version 4.00 also in the product description without the extended search but directly via the search field ?.

Does anyone have a solution for this?

Best regards
6 years ago
Hello,

You could go to Nop.Web / Controllers / CatalogController, find the Search action and set the searchInDescriptions to true. By default it is set to false.
4 years ago
hi there
I too would like to change the default search settings
i cannot find this path on my web site
Nop.Web / Controllers / CatalogController
im using nopCommerce version 4.20
is there a different path?
Thanks !
4 years ago
Check in CatalogModelFactory.PrepareSearchModel.

4 years ago
Thanks for reply - where do I find this file ?
CatalogModelFactory.PrepareSearchModel

is it in the website admin ? or ?

Cheers
4 years ago
It's available in SOURCE CODE.
Search in Nop.Web » Factories » CatalogModelFactory.cs
4 years ago
ah i think i downloaded the non source code version.
can i still use this?
4 years ago
1. Download source code version
2. Open nopCommerce solution in Visual Studio
3. Change in Nop.Web » Factories » CatalogModelFactory.cs (PrepareSearchModel())
4. Build the solution
5. Publish Nop.Web

then use the published version.
4 years ago
thanks. is there any other way to do this? Ive already published the site and would worry that i would break it !
4 years ago
No you need to change the code or get a developer to do it for you
Can you use Visual Studio ?

That change will only modify one file Nop.Web.dll
Publish the website to a local directory
Take a backup of the Nop.Web.dll file on the website before you change it
You only need to upload the Nop.Web.dll file that is modified
Restart the website site
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.