Search: Prioritize Matching Names

Average Rating: 5
Equal weight is given to all products matching the search keywords ... whether the match was found in the product's name, model-number, manufacturers name, meta tags or (if requested) its description. That can mean that products whose names match those keywords might wind up "below the fold" -- where they're probably the most relevant!

This simple plugin updates the SQL query used on the "Advanced Search Results" page, giving a higher priority to those products whose names match the keywords.

Note: Since this plugin makes use of the auto-loaded observers feature introduced in Zen Cart v1.5.3, the plugin will operate properly **ONLY ON** Zen Cart versions v1.5.3 and later.

Forum Support Thread

Zen Cart® Versions v1.5.8, v2.0.0
Original Author lat9
Last Updated by lat9 - 27 May 2024
Downloads 183

Version History

Search: Prioritize Matching Names   -   Version: v1.0.1
This release contains changes associated with the following GitHub issues:

#2: Bracket in search terms not ignored in query construction
#3: Define class property for PHP 7.4+
Zen Cart® Versions v1.5.8, v2.0.0
Date Added 27 May 2024
Author lat9
File Size 11.2 KB
Encapsulated? No
Downloads 12
Search: Prioritize Matching Names   -   Version: 1.0.0
Zen Cart® Versions v1.5.3, v1.5.4
Date Added 30 Oct 2015
Author lat9
File Size 10.4 KB
Encapsulated? No
Downloads 171

Zen-Cart, Internet Selling Services, Klamath Falls, OR