search results with blank field
Currently when a customer hits "search" with a blank search field, xcart will $QUERY_STRING, meaning show all products. Is it possible to take them to the search results page "No matching products found" when the search field is empty? I'm pretty sure the mod is somewhere in the search.tpl found below;
#
# $Id: search.php,v 1.44.2.5 2004/02/05 12:29:22 mclap Exp $
#
require "../smarty.php";
require "../config.php";
@include "./https.php";
require "./auth.php";
require "../include/categories.php";
$tmp=strstr($QUERY_STRING, "$XCART_SESSION_NAME=");
if (!empty($tmp))
$QUERY_STRING=ereg_replace("$XCART_SESSION_NAME=([0-9a-zA-Z]*)", "", $QUERY_STRING);
if(!empty($QUERY_STRING)) {
#
# Perform SQL search query
#
$substring = trim($substring);
|