View Single Post
  #2  
Old February 3rd, 2012, 05:32 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

I guess you could add the following code to your Search Widget. This will add a saleprice parameter to the search results.

HTML Code:
<input type="hidden" name="saleprice" value="1-" />
Therefore your Simple Search widget would look like this:

HTML Code:
<script type="text/javascript">
<!--
/*
 * NOTE: This JS code would be much better off
 * existing in your theme's header.php file.
*/
function wash( anInput ) { if(anInput.value == anInput.defaultValue) anInput.value = ''; }
function checkWash( anInput ) { if(anInput.value == '') anInput.value = anInput.defaultValue; }
//-->
</script>

<div class="store_search_form">
  [search.form]
  [search.word onfocus='wash(this);' onblur='checkWash(this);' value='Search store...']
  <input type="hidden" name="saleprice" value="1-" />
  [search.submit title='Go']
  [/search.form]
</div>
Eric