Search Multiple Words “And” / Exact Phrases

Search Multiple Words “And” / Exact Phrases

How to search multiple words or exact terms with matching all keywords

Please download the following file. This is the file sourced from prestashop forum and provided by Peter4661 member. The file Class/Search.php, Rename your existing one and replace the below one.

Then, in the BackOffice, go to Search under the “shop parameter”, change the exact configuration like the below screenshot. 

Finally, click the “Rebuild all index”. 

How to test it? Try to add multiple products like “iphone 12”, “iphone 12 abc”, “iphone 12 dec”, “iphone 12 kkk”, “iphone 11”, “iphone 13”. You make a test on iphone 12 keyword in the search bar. You should be able to see only iphone 12 related products appeared. 

Start typing and press Enter to search

slot gacor dana slot deposit dana