1

I want to develop a price filter in magento 1.9 and i have done this which is not working.

<div class="price_range_caption">

<span class="currency_from">Rs.</span><span id="price_range_fromprice" >1250</span><span id="price_range_toprice">6600</span><span class="currency_to">Rs.</span></div>
<script type="text/javascript">
var slider = create_price_slider(170, 0, 170, 1250, 6600,"price");
window.onresize = function() {


var url = window.location.href;
var pa = document.getElementById("price_range_fromprice").innerHTML;
var pb = document.getElementById("price_range_toprice").innerHTML;

window.location.assign(url+"&price="+pa+"-"+pb);


};


</script>

Url us generating ok i have tested it but ONRESIZE function is not working. enter image description here

9
  • why are using the ONRESIZE function? Commented Mar 30, 2016 at 5:25
  • for price filter on left side bar i shared the picture
    – atifaltaf
    Commented Mar 30, 2016 at 5:26
  • do you have any other technique for price filter just like i need.
    – atifaltaf
    Commented Mar 30, 2016 at 5:27
  • 1
    use this slider it is easy to add your function phpgang.com/… Commented Mar 30, 2016 at 5:32
  • oka i am trying
    – atifaltaf
    Commented Mar 30, 2016 at 5:38

1 Answer 1

1

here are list the list of free layered navigation

https://www.google.com/search?client=ubuntu&channel=fs&q=ajax+layered+navigation&ie=utf-8&oe=utf-8#channel=fs&q=magento+free+layered+navigation

if you want to create the custom i recommend this tutorial

http://www.phpgang.com/how-to-create-price-range-slider-in-jquery-php-with-mysql_437.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.