Hello All
I think my users are getting annoyed as they seem to be coming up with a large number of results for their searches.
If there anyway to set search in the from end to only show results for matches with all words rather than any words.
Cheers
I’m getting a bit more used to CS-Cart now so can word this slightly better.
I would like the default customer search to be the same as “all of these words” in advanced search.
Does anyone know how to do this?
Cheers
adders
why not just change the search.tpl file
CURRENT:
{$lang.all_words}
{$lang.exact_phrase}
and remove the 1st drop down option.
All would then be the default
good luck
Go to /skins/your-skin/customer/search_pages/search.tpl
And look for the code below, the [COLOR=“Red”]selected[/COLOR] within the option tag is what determines the default.
DELTA9000,
Wow we posted the same thing the exact same minute
great minds think alike
your option might be better than removing it like I did, just in case he wants to change in the future
Cool -thanks guys.
If it’s a simple change like that it should pose no problem.
Thanks a lot.
Cheers
Sorry just taken a look at it and I think I didn’t word my request very well.
What I actually wanted to ask was how to get the search box that is permanently at the top of the screen to search using match type all.
Applying the info you gave me I have got it working now, so thanks again, but thought I’d post to let others know what I did.
I added this line as a hidden field to skins/basic/customer/side_boxes/search.tpl
[HTML][/HTML]
Pretty simple but I just need pointing it the right direction.
Cheers
God this little quark was annoying me, thanks for the fix I added the
and it fixed it. I was having the same problem where it would pull up hundreds of products rather than what they were searching for.
Using “Basic” skin
skins/basic/customer/search_pages/search.tpl
Line 17
Change to
This has seemed to GREATLY improved my search listings from both the customer side and “advanced search”
Thanks for bringing this to my attention adders.
No problem - I think I’ll change the search page as you have as well.
At the moment I’ve just changed skins/basic/customer/side_boxes/search.tpl to search match type “all”.
Cheers
[quote name=‘mclamais’]Go to /skins/your-skin/customer/search_pages/search.tpl
And look for the code below, the [COLOR=red]selected[/COLOR] within the option tag is what determines the default.
[/quote]
Instead of doing just selected I would write it instead as selected=“selected”. Otherwise it’s not XHTML.
I added this line as a hidden field to skins/basic/customer/side_boxes/search.tpl
However, this did not change the behavior of the search. The searches continue to act as if ‘any of these words’ is being used instead of ‘all of these words’.
I am using V1.3.5 SP2. Any ideas on why this is not working?
I have same problem too.
[quote name=‘widget’]I added this line as a hidden field to skins/basic/customer/side_boxes/search.tpl
However, this did not change the behavior of the search. The searches continue to act as if ‘any of these words’ is being used instead of ‘all of these words’.
I am using V1.3.5 SP2. Any ideas on why this is not working?[/QUOTE]
Bahcaci,
It works just fine, i am running the same version…
I was wondering why so many of our customers were complaining about not being able to find things in the “search.” It is because if they put “playing card holder” in our search they are going to pull up just about every item on our site! I’m not really for sure I understand the logic in why they set it up like this.
I will make the change and report back.
Yea my site does the same thing also
I have now changed both the general search and the advanced search on the newtsgames.com. GREAT JOB! I think this will help folks find things a lot faster. I know it helps us!
Now when a customer searches something like…
“card shuffler”
…it only pulls up the card shufflers instead of every thing in our database! This may be one of the big reasons we saw a huge decline in orders from our old shopping cart and the new one using CS.
This is something that CS needs to have set from the get-go or “out of the box”. We have a lot of searches being done on our site and this is probably why our oders were lower…and have already seen a BIG increase in just a day! I know I usually search when I shop at sites, so I’m sure others do the same. If the search either brings up nothing or too much “generic” I usually just leave the site. The setting that CS has this set at is too generic and usually the way anyone would want to search at first or most of the time.
So again, thanks for this HUGE improvement!
Not working for me. and i am using the newest version of cscart
Thanks for this!
Before, a random three word search phrase brought up over 50 products by default. Now, it brings up only the one exact match that it should.