Post by rikmg67 » Wed Nov 22, 2017 6:31 pm

I'm using opencart 2.3.0.2

On the search...

How can i enforce whole word matching only (disable partial word and related word matching) in the product search please?

Hope someone can help!
Thanks,

Newbie

Posts

Joined
Thu Nov 29, 2012 12:44 am

Post by straightlight » Wed Nov 22, 2017 7:17 pm

In catalog/model/catalog/product.php file, in the getProducts method replace:

Code: Select all

LIKE
with:

Code: Select all

=
and remove the percentages characters.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by rikmg67 » Wed Nov 22, 2017 11:14 pm

Thanks for the response! I will give it a try!

Newbie

Posts

Joined
Thu Nov 29, 2012 12:44 am
Who is online

Users browsing this forum: No registered users and 454 guests