Print Page | Close Window

Customize Small Search Box to only Search "SKU"

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=1979
Printed Date: 23-April-2025 at 4:54pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Customize Small Search Box to only Search "SKU"
Posted By: BYRSC
Subject: Customize Small Search Box to only Search "SKU"
Date Posted: 16-September-2008 at 3:33pm
How can I customize Smallsearchbox.asp to search only for the Part Number/"SKU"?



Replies:
Posted By: Matt
Date 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!


Posted By: BYRSC
Date 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.


Posted By: Matt
Date 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


Posted By: BYRSC
Date Posted: 16-September-2008 at 4:28pm
That did it.  Thank You!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net