| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Modifying the Quick Search to perform an exact search | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Modifying the Quick Search to perform an exact search
On a store running XC 4.6.3 I need to modify the quick search so that an exact word/phrase match is found..
The code I have at the moment is as follows: Code:
I tried changing the parameter for posted_data[including] to "phrase" but that does seem to have resolved it ... Can anyone help? Cheers Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Modifying the Quick Search to perform an exact search
This parameter takes "all, any, phrase". However at the end they all perform the search for "like" not exact match.
If you want to do exact match you need to modify the /include/search.php and change the query from PHP Code:
to PHP Code:
Just a sample code - yours may be different
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||||
|
|||||||||
Re: Modifying the Quick Search to perform an exact search
Thanks Steve
That appears to be working
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
|
|||
X-Cart forums © 2001-2020
|