![]() |
Customize Small Search Box to only Search "SKU" |
Post Reply
|
| Author | |
BYRSC
Newbie
Joined: 16-September-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Topic: Customize Small Search Box to only Search "SKU"Posted: 16-September-2008 at 3:33pm |
|
How can I customize Smallsearchbox.asp to search only for the Part Number/"SKU"?
|
|
![]() |
|
Matt
Moderator Group
Joined: 20-July-2006 Location: United States Status: Offline Points: 73 |
Post Options
Thanks(0)
Quote Reply
Posted: 16-September-2008 at 3:50pm |
|
Open the file "pc/SmallSearchBox.asp". Find the text "keyword" in the HTML code. Change it to "SKU". Save and Upload. Backup the file before making any edits!
|
|
![]() |
|
BYRSC
Newbie
Joined: 16-September-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Posted: 16-September-2008 at 3:52pm |
|
I have already tried that and after you put in anything (sku or a keyword) it takes you to the search.asp page.
|
|
![]() |
|
Matt
Moderator Group
Joined: 20-July-2006 Location: United States Status: Offline Points: 73 |
Post Options
Thanks(0)
Quote Reply
Posted: 16-September-2008 at 4:23pm |
|
Right. You will also need to modify the "Don't allow empty searches" section of "showsearchresults.asp".
Change: if pKeywords="" AND pIdCategory="" then Change To: if pKeywords="" AND pIdCategory="" AND pSearchSKU="" then |
|
![]() |
|
BYRSC
Newbie
Joined: 16-September-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Posted: 16-September-2008 at 4:28pm |
|
That did it. Thank You!
|
|
![]() |
|
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 |