Site Wide Search in nopCommerce

I have implemented a Site Wide Search in my nopCommerce site for a client. This searches in to Products, Category, Blogs, Press Releases (News) and Events (See my other post on how to implement Event in nopCommerce) section with the given key word. The paging is enabled and User can filter the search result. This may not be the optimal way, but I think its worth sharing with you. The source codes can be downloaded from this link. This is on 1.30 version.

Step 1:

Replace the Search.ascx with the files in the \Modules folder in my source.

Step 2:

Open the modules.css file in App_Themes\<Your Selected Theme> folder and comment out the CSS for Search Result. Use the given CSS herewith in CSS TO BE ADDED IN modules.css folder.

Step 3:

Go to Libraries  -> Nop.Common -> Search. Replace the files with the files given in NopSolutions.NopCommerce.Common.Search folder

Step 4:

Go to Libraries -> Nop.DataAccess -> Search. Replace the files with the files given in NopSolutions.NopCommerce.DataAccess.Search

Step 5:

Replace the files in Libraries\ Nop.DataAccess.SqlServer\Search with given files in NopSolutions.NopCommerce.DataAccess.SQLDataAccess.Search

Step 6:

Create the Stored Procedure. Query Given in the SQLQuery.sql File.

Step 7:

Now run the site and make changes as you need. I could include the Topics Section too. But Topics has no field to identify in which page the topic is being used.

However, this is for 1.30v, so, the guys working on the newer version may have an idea and implement of their on.
You can watch a live demo in the site: http://www.sandalaproductions.com

Happy Coding!

Advertisements

2 thoughts on “Site Wide Search in nopCommerce

  1. Thanks for the information, it would be great if you happened to have the code for a more recent version of nop 🙂 but assuming that’s not the case, could you possibly provide a copy of files before your changes for comparison purposes? This would help give some direction as to the code your changes came from and could be used to compare against current code to determine the changes that would be needed in a more recent version. Thanks again!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s