mileageMin and mileageMax doesn't seem to be sended to search_form.php, try this changes to add them to the params
change
<script type="text/javascript">
$(function() {
$("#mileage-range").slider({
range: true,
min: 0,
max: 1500000,
step:25000,
values: [<?php echo $mileageMin; ?>, <?php echo $mileageMax;?>],
slide: function(event, ui) {
$("#mileage").val(ui.values[0] + ' - ' + ui.values[1]);
}
});
$("#mileage").val($("#mileage-range").slider("values", 0) + ' - ' + $("#mileage-range").slider("values", 1));
});
</script>
to
<script type="text/javascript">
$(function() {
$("#mileage-range").slider({
range: true,
min: 0,
max: 1500000,
step:25000,
values: [<?php echo $mileageMin; ?>, <?php echo $mileageMax;?>],
slide: function(event, ui) {
$("#mileage").val(ui.values[0] + ' - ' + ui.values[1]);
$("#mileageMin").val(ui.values[0]);
$("#mileageMax").val(ui.values[1]);
}
});
$("#mileage").val($("#mileage-range").slider("values", 0) + ' - ' + $("#mileage-range").slider("values", 1));
$("#mileageMin").val($("#mileage-range").slider("values", 0));
$("#mileageMax").val($("#mileage-range").slider("values", 1));
});
</script>
and
<h6><?php _e('Mileage', 'cars_attributes'); ?></h6>
<div class="row one_input">
<p>
<input type="text" id="mileage" name="mileage" style="background-color: transparent; border:0; color:#f6931f; font-weight:bold;" readonly/>
</p>
<div class="slider" >
<div id="mileage-range"></div>
</div>
</div>
to
<h6><?php _e('Mileage', 'cars_attributes'); ?></h6>
<div class="row one_input">
<p>
<input type="text" id="mileage" name="mileage" style="background-color: transparent; border:0; color:#f6931f; font-weight:bold;" readonly/>
<input type="hidden" id="mileageMin" name="mileageMin" />
<input type="hidden" id="mileageMax" name="mileageMax" />
</p>
<div class="slider" >
<div id="mileage-range"></div>
</div>
</div>
i don't know if this works, but it's worth a try