Searching Products with Hyphens
-
We have a website with a large database of products, most of which have hyphens (i.e. 173-1651). When a customer searches the part number with the hyphens (or with a space instead of the hyphen), the results appears. However, some of our customers will enter the numbers in with no hyphen (i.e. 1731651) and no results are found.
I’ve been searching for hours trying to find a solution. I did try the solutions found here, adding the code to functions.php and reindexing. But it hasn’t worked.
https://www.ads-software.com/support/topic/fuzzy-search-option-not-honored?replies=3
I’m not sure that accomplishes what I’m trying to do anyway.
I want someone, for example, to type ‘173-1651’, ‘173 1651’ or ‘1731651’ and retrieve the correct product in search results. The first two work but I can’t get the third to work. Any idea how I can remedy this?
Thank you!
- The topic ‘Searching Products with Hyphens’ is closed to new replies.