You are here:  » Search button behavior


Search button behavior

Submitted by D.Tzortzis on Thu, 2015-06-11 07:08 in

Goodmorning,

I need a litle modification about the search product form.
I use 15/01A with Search form auto complete + uCompare theme, in this time if the search input is blank and press the search button is redirect you into the follow url: http://domain.xxx/search.php?q=

I need when you press the button with blank input area to refresh the page.

Thanks,
Dimitrios Tzortzis.

Submitted by support on Thu, 2015-06-11 07:54

Hello Dimitrios,

Sure - in search.php, look for the following code around line 418:

  require("html/header.php");

...and REPLACE with:

  if (!$q)
  {
    header("Location: ".$config_baseHREF);
    exit();
  }
  require("html/header.php");

Cheers,
David.
--
PriceTapestry.com