| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Improved Search Function | ||||
|
|
Thread Tools | Search this Thread |
#71
|
|||||||
|
|||||||
I started another thread on the search function for 4.0.1, but realize that this is probably where i should post my concerns and issues. When I search for books by author on my site I have to input the name into the search field like this: 'king, stephen' or just 'king' to get results. If I enter 'stephen king' then I get no matches. Obviously the author field is in the lastname, firstname format in the database, but I've got too many products to go back and change them all now. I don't have this issue on my live store(3.4.14) because of the code I used from this thread. If there is anyone with knowledge of php willing to make the changes necessary to the include/search.php to allow a more user friendly search in 4.0.1, I would sure appreciate the help.
|
|||||||
#72
|
|||||||
|
|||||||
oh man, not again with 4.0! xcart should really change the search capabilities in the current code baseline...
__________________
----------------------- x-cart v4.7.6 [LIVE] x-cart v4.0.18 [retired 2004-2016] x-cart v3.5.13 [retired] x-cart v3.4.14 [retired] |
|||||||
#73
|
|||||||
|
|||||||
Quote:
It is harder than you might think to write a real quality search algorithm. Look how long it took for a "Google" to show up on the scene. Though I do admit, a little more work and the search function in Xcart could do a whole lot better.
__________________
X-Cart Pro 4.5.5 Platinum X-Payments 1.0.6 PHP 5.3.14 MySQL 5.1.68 Apache 2.2.23 |
|||||||
#74
|
|||||||
|
|||||||
Has anyone been able to find a solution to this yet?
__________________
4.1.9 (Linux) Live Store www.thecrackedbook.com Find used books and out of print books. |
|||||||
#75
|
|||||||
|
|||||||
OK, still under development with 4.0.3 and I've manually gone in and added more product fields instead of using the extra fields option since I don't like the way you have to import into extra fields. I then went into the customer/search.tpl and edited that to show the extra fiels in the search options. Then I edited include/search.php and changed the code under the substring by changing this:
Code:
to this: Code:
and it works great, with 1 exception. Like posted earlier, the author data is stored in lastname, firstname format in the database and unless someone types it that way into the search field then they get 0 results found. I don't want to change the way I store it in the database, but I really need customers to be able to search for author by being able to type robert ludlum instead of being forced to type ludlum, robert. Does anyone have any ideas about how I might do this?
__________________
4.1.9 (Linux) Live Store www.thecrackedbook.com Find used books and out of print books. |
|||||||
#76
|
|||||||
|
|||||||
Version 4.0.4
I was able to implement this mod in version 3.5.0 But now I am confused in what to do for version 4.0.x Can anyone summarize what is needed in order to implement this mod. I don't want to copy paste code from this thread!!
Thanks Ian |
|||||||
#77
|
|||||||
|
|||||||
i am amazed (or rather really disappointed) that the xcart team did not build this code into version 4 to get a search that at least works.
the standard xcart search is appalling (it makes the search on this forum look good) and is not something that any of us should be happy to give to a customer or client to use for searching for a product. RRF - please sort it out
__________________
ex x-cart guru |
|||||||
#78
|
|||||||
|
|||||||
It is true that the search function could be better but
the solution in this thread works great. Can I do the same mods in 4/0.x?
Thanks Ian Gold 4.0.4 |
|||||||
#79
|
|||||||
|
|||||||
Does anyone read what other people say in these forums?
*sigh* |
|||||||
#80
|
|||||||
|
|||||||
Ca you point to a thread?
All I am asking is for someone with more knwoledge than me to summarize, what is exactly needed to do in 4.0.x Or confirm that by copy and pasting these codes I shuldn't have any problems.
Thanks Ian Gold 4.0.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|