Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove Advanced Search


Paul W

Recommended Posts

Hi

 

I've had a search but cant find anything.

 

I want to remove the advnaced search from my site as it is not required. Anyone able to help me with this?

 

Many thanks

Paul

Link to comment
Share on other sites

In catalogincludesboxessearch.php remove this - no more, no less (please backup your file):

 

<a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>

Link to comment
Share on other sites

I've added the following code to my header.php, as to replace the search box formerly found on my site

 

<td height="80" align="right" valign="bottom"><font face=Verdana, Geneva, Arial, Helvetica, sans-serif size=1>Search  <form name="quick_find" method="get" action="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false);?>">

       <input type="text" name="keywords" size="15" maxlength="20" value="<?php echo htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"]));?>">

 <?php echo tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH);?></form> 

</td>

 

So my question is this. Based on the code above, how can I eliminate the advanced search, making the search result act like an advance search with the 'look in the desciption' turned perminently "ON". I have the look in description turned on in the admin, yet a typical search will not yield these results unless an advance search with the box checked is performed. Again, I just want my regular search box to act like this was always the case. Thanks for any help.

 

Ken

Good things happen to good people!

Link to comment
Share on other sites

Now i've removed the link for the advnaced search as i wanted, you can still access it though, when you do a quick search and hit the back button on the results page.

 

Basically im just going to remove the back button. Anyone know where the code is for this, and what needs changing?

 

Thanks

Link to comment
Share on other sites

I've added the following code to my header.php, as to replace the search box formerly found on my site

 

<td height="80" align="right" valign="bottom"><font face=Verdana, Geneva, Arial, Helvetica, sans-serif size=1>Search  <form name="quick_find" method="get" action="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false);?>">

       <input type="text" name="keywords" size="15" maxlength="20" value="<?php echo htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"]));?>">

 <?php echo tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH);?></form> 

</td>

 

try this:

 

<tr>

<td height="80" align="right" valign="bottom">

<font face=Verdana, Geneva, Arial, Helvetica, sans-serif size=1>Suche  <form name="search_in_description" method="get" action="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false);?>">

<input type="hidden" name="search_in_description" value="1"><input type="text" name="keywords" size="15" maxlength="20" value="<?php echo htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"]));?>">

<?php echo tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH);?></form> 

</td>

</tr>

 

So my question is this. Based on the code above, how can I eliminate the advanced search, making the search result act like an advance search with the 'look in the desciption' turned perminently "ON". I have the look in description turned on in the admin, yet a typical search will not yield these results unless an advance search with the box checked is performed. Again, I just want my regular search box to act like this was always the case. Thanks for any help.

 

Ken

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...