I know a lot of you need to have links to search results (like the old x-cart versions could). Now you can with this very simple mod!
In search.php (in your main X-cart directory, not in the include folder!) Find the following code:
Code:
x_session_register("search_data");
Insert this code AFTER the code you found above:
Code:
# BCSE begin
if($search)
{
$search_data['products']['substring']=$search;
$mode="search";
}
# BCSE end
To use this mod just point your browser to urls like this:
http://yourdomain.com/search.php?search=SEARCHQUERYHERE
If you need spaces in the query to include multiple words use + inbetween like this:
http://yourdomain.com/search.php?search=SEARCH+QUERY+HERE
Hope this helps some of you!
Carrie
Note this works in 4.1.x as well!!