title: Magento Price filter
body: <p>In my site the filter is showing the price: Rs 0.00-Rs 1.00.</p>
  
  <p>I need to sort the price by automatically fetching the minimum value.</p>
  
  <p>Following is the code from filter.phtml, please help.</p>
  
  <pre><code>   if(!function_exists("_displayDropdown")){
          function _displayDropdown($atts,$displayitemcount,$new_attributeName){
              echo '&lt;select id="layered-select" class="select" name="layered-select" onchange="if (this.selectedIndex &gt; 0) location.href=this[this.selectedIndex].value;"&gt;';
              echo '&lt;option selected="selected"&gt;'.$new_attributeName.'&lt;/option&gt;';
              foreach ($atts-&gt;getItems() as $_item){
                  echo '&lt;option value="'.$_item-&gt;getUrl().'"&gt;';
                  echo $_item-&gt;getLabel();
                  if($displayitemcount){
                      echo ' ('.$_item-&gt;getCount().')';
                  }
                  echo '&lt;/option&gt;';
              }
              echo '&lt;/select&gt;';
          }
      }
  
      switch ($attributeName) {
          case 'Shoe Size':
          case 'Overthreshold':
              _displayDropdown($this,$displayitemcount,$new_attributeName);
              break;
  
          default:
              _displayOrderedlist($this,$displayitemcount);
              break;
  </code></pre>
  
  <p>}  </p>