M
M
mamai2112952020-07-16 19:15:06
opencart
mamai211295, 2020-07-16 19:15:06

How to do an exact match search in opencart tag values?

guys, who can tell if there are IM fabrics, there is a product "linen", but when you enter "linen" in the search engine on the site or under the admin panel, then, as you can see on the screen, all the words with these letters appear, and the product itself will be somewhere far away, how can this moment be corrected? either so that the product "flax" is shown first in priority, and then the words that contain these letters, or a hard search is displayed, if you enter "flax" then it will give out the product, if you entered it incorrectly, then let nothing be displayed
w7gkcrkEMVk.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VVCh, 2020-07-23
@VVCh

1. pd.name LIKE ' . $data['filter_name'] . "%'
As you can see the search string Must start with
2 . what you want is called relevant search (but what about KLEN
)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question