Sku Quick Search instead of search all fields |
Post Reply |
Author | |
dwatch
Newbie Joined: 26-February-2006 Status: Offline Points: 33 |
Post Options
Thanks(0)
Posted: 28-October-2015 at 5:48pm |
For performance reasons, Need to edit the quick search to search sku, instead of all product fields. So customer enters the sku in the search box and only the sku field is searched. I tried to change name "keyword" to name = "sku" but that redirects to the search.asp page for some reason. any help is appreciated, figure it must be something minor, since the search.asp page seems to be able to search only sku, when you type into the sku field from that page, and they are both processed by showsearchresults.asp.
<input type="hidden" name="pageStyle" value="<%=bType%>"> <input type="hidden" name="resultCnt" value="<%=pcIntPreferredCountSearch%>"> <input type="text" name="keyword" value="" id="pcHSearch"> <input type="submit" name="submit" value="Go" id="pcHSearchSubmit"> |
|
dwatch
Newbie Joined: 26-February-2006 Status: Offline Points: 33 |
Post Options
Thanks(0)
|
I revised the code to the following (listed below> <form action="showsearchresults.asp" name="search" method="get" id="pcHSearchForm"> <input type="hidden" name="pageStyle" value="<%=bType%>"> <input type="hidden" name="resultCnt" value="<%=pcIntPreferredCountSearch%>"> <input type="text" name="keyword" value="" id="pcHSearch"> <input type="submit" name="submit" value="Go" id="pcHSearchSubmit"> and also changed all occurrences of the word A.details with A.pcProd_MetaKeywords in the file pc/showsearchresults.asp and the file pc/inc_srcPrdQuery. This took care of the quick search to just search sku, and also improved performance on the advanced search. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |