Search in the product description

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 6 ans
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
Il y a 6 ans
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.
Il y a 4 ans
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 !
Il y a 4 ans
Check in CatalogModelFactory.PrepareSearchModel.

Il y a 4 ans
Thanks for reply - where do I find this file ?
CatalogModelFactory.PrepareSearchModel

is it in the website admin ? or ?

Cheers
Il y a 4 ans
It's available in SOURCE CODE.
Search in Nop.Web » Factories » CatalogModelFactory.cs
Il y a 4 ans
ah i think i downloaded the non source code version.
can i still use this?
Il y a 4 ans
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.
Il y a 4 ans
thanks. is there any other way to do this? Ive already published the site and would worry that i would break it !
Il y a 4 ans
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.