| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Getting Quick Search to do Whole Word Searches | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I've been looking around for an answer to this but can't seem to find one.
You can set the search results to be for 'any', 'all' or the exact phrase. What I need is to set the search to be the exact phrase and a whole word. In php this would be PHP Code:
Now there must be somewhere in X-Carts many files where I can take the search result and change it into a 'whole word' requirement. This is important for part numbers such as the following: Searching "EC-22" should only show up part number EC-22, not part number EC-22542. Any suggestions how and where ... ?
__________________
X-Cart 4.4.3 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() include/search.php
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() It was indeed include.search.php.
For anyone who stumbles on this thread I wanted to have whole word matches but only in the extra fields. So I changed: Code:
To: Code:
The Regexp now demands that only whole words are found rather than words 'like'
__________________
X-Cart 4.4.3 |
|||||||
|
|
|||
X-Cart forums © 2001-2020
|