![]() |
Customize Small Search Box to only Search "SKU" |
Post Reply ![]() |
Author | |
BYRSC ![]() Newbie ![]() Joined: 16-September-2008 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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 |