Jump to content
Sign in to follow this  
roquetsynce

Simple Search Box

Recommended Posts

Simple_Search_Box_v2.1

 

How can I get this contribution to search through both the titles AND desciptions?

 

Someone help please :'(

 

 

Thanks in advance!

 

~Roq

 

 

For those that dont have the code in front of them:

 

 

?>
<script>
function clearDefault(el) {
 if (el.defaultValue==el.value) el.value = ""
}
</SCRIPT>
<form name="quick_find" action="advanced_search_result.php" method="get">

	  <table>
		<tr>
			<td>
				<div>
					<!-- This is the input box where visitors enter keywords etc -->
					<input type="text" name="keywords" value="Keyword Search" size="20" ONFOCUS="clearDefault(this)" class="textsmall">
				</div>
			</td>
			<td>
				<div>
					<!-- OSC Search Submit Button Below -->
					<?php echo tep_image_submit('button_go-search.gif', BOX_HEADING_SEARCH); ?>
					<!-- Default Gray Search Submit Button Below -->
					<!--<input type="submit" name="search" value="go" class="formfield" border="0" width="5" height="5" />-->
				</div>
			</td>
		</tr>
	  </table>

</form>

Share this post


Link to post
Share on other sites

I realize I am the only one responding to this thread, but I have yet to find a solution.

 

Please HELP me before I break something trying to do it myself!

 

Thanks

 

~Roq

Share this post


Link to post
Share on other sites
Simple_Search_Box_v2.1

 

How can I get this contribution to search through both the titles AND desciptions?

 

Still need help with this please!

 

:'(

Share this post


Link to post
Share on other sites

I thought I should help you before you get bored and stop posting in this thread :D

 

open catalog/includes/boxes/search2.php

 

FIND:

 

<input type="text" name="keywords" value="Search" size="30" ONFOCUS="clearDefault(this)">

 

ADD BELOW:

 

<input type="hidden" name="search_in_description" value="1" />
<input type="hidden" name="inc_subcat" value="1" />

 

save the file.

 

This searches in product descriptions and also all the sub categories which I thought you would probably prefer to have.

 

Enjoy.


Santa's little freelancer

Share this post


Link to post
Share on other sites
I thought I should help you before you get bored and stop posting in this thread :D

 

This searches in product descriptions and also all the sub categories which I thought you would probably prefer to have.

 

Enjoy.

 

 

Thank you thank you thank you!!!!

 

Nimz, you have made my day! Works like a charm and having it search through descriptions and subs is exactly what I wanted!

 

You are a life saver! :thumbsup:

 

Cheers!

 

~Roq

Share this post


Link to post
Share on other sites

And how can I do a search between Customers (without using admin panel)?

Can you help me?

I don't know how to do it :blush:

Edited by western

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×