You are here:  » Search parameter "bw"


Search parameter "bw"

Submitted by keymaster on Tue, 2006-08-08 16:07 in

Hi David,

In search.php, there is a switch statement as follows:

switch($parts[0])
{
case "merchant":
case "category":
case "brand":
        case "bw":
}

What is the "bw" case for? How is the "bw" parameter passed along on the query line - I couldn't find where it is added. Seems to only be used in this switch statement and nowhere else?

Thanks.

Submitted by support on Tue, 2006-08-08 16:59

It performs a "begins with" search, and is actually a left over search tag used for testing. If you typed in "bw:Pla" in the search box it would return all products beginning with those 3 letters, for example:

http://www.webpricecheck.co.uk/search.php?q=bw:pla

Cheers,
David.