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:
<form method="post" action="search.php" name="productsearchform"> 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 |
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 |
Re: Modifying the Quick Search to perform an exact search
Thanks Steve
That appears to be working :) |
All times are GMT -8. The time now is 06:09 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.