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


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; }

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