![]() |
phrase search for 3.5.7?
I'm wondering if there's a way I can get 3.5.7 to search phrases and not just one exact word. I tried this thread: http://forum.x-cart.com/viewtopic.php?t=5971&highlight=advanced+search but got major errors on the search results. Does anyone have a solution for this version? Thank you.
|
anyone?
|
Hum. Well, it does search for phrases, but the words must be in the exact order you place them.
For example, on my site, if you search for increase decrease you get no results, but if you search for increase or decrease you get my Inventory Pricing Mod. It would take a bit of coding to return results for the 1st case. I'm not sure if that improved searching mod does that or not as I've not tried it. Maybe someone else will know. Wish I could help more. :( Carrie |
When I had 3.4.14, I had the search code changed as described in the link above and it worked perfectly (i.e. it would search any phrase in or out of order perfectly), but not any longer since I upgraded to 3.5.7 :(
|
The code below was posted on that same thread for 3.5.3 (page 4).
It should work with 3.5.7. Code:
<?php |
I'll give her a try again, thanks.
|
Ok, I must have used the wrong one, thanks! It works now. ;)
|
Cool 8)
You might also try this adding the following: Find... Code:
$sql_tbl[products].".param00 like '%".$s."%'"." OR ". and make it look like... Code:
$sql_tbl[products].".param00 like '%".$s."%'"." OR ". This way it will also search in all your extra fields! You might or might not have a use for it so edit it accordingly ;) |
totally cool, thanks. I'll give it a try. Thanks again.
|
All times are GMT -8. The time now is 09:41 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.