Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author RealMag777

    (@realmag777)

    Hello. You have good idea, and I think I will implement it. But can you describe a little how did you admitted this bug? Just like this man described:
    https://wordpress.org/support/topic/conflict-with-price-filter

    because I can not find this bug on the demo http://wordpress-filter.com/ (I mean different results). Or drop me link please where I can look and understand the issue. It is important for me what is really what is going on …

    Thread Starter mani2848

    (@mani2848)

    Hi,

    I use the Woocommerce built-in price filter with your products filter.
    That’s why the filters don’t work in harmony.

    You can see what I mean from the link below.
    http://thatvintage.co.uk/tvtg/product-category/women/?swoof=1&pa_colour=navy
    From the link if you use the price filter, the results goes back to the beginning.

    If the price range was included in your plugin, it would be a lot more user-friendly.

    Hope it makes sense…

    Thank you so much for your time. 🙂

    Plugin Author RealMag777

    (@realmag777)

    Hello. Thank you. Yes, I understood, if apply woo price filter – its reset data and make filtering only by price, so customer have to again set filter conditions… I will work with it …

    Plugin Author RealMag777

    (@realmag777)

    Hello. Try please 1.0.5 version with native woo price filter – I made them friends …
    [Link retracted – Please respect the WordPress foundation]

    Jeckstart

    (@jeckstart)

    Hi, really nice awesome plugin you made!
    But I have this conflict with woocommerce price filter, too (in v1.0.5)
    They work fine together only for “product tags”;
    For anything else (taxonomies, attributes, “in stock”) after woocommerce price filter is applied, all previosly applied filters disappear (“swoof=1” is erased from url also).
    BUT I have noticed backwards compatibility – if I use your filters after woocommerce price filter is applied, everything is fine!

    Can you please hint me what may cause the problem? I think I will be able to fix it, if you point me in right direction 😉

    Jeckstart

    (@jeckstart)

    Just noticed, that categories filters work nice with your filters also.
    So things that do not work are: taxonomies, attributes, “in stock”.

    So for example, if my url was:
    store?swoof=1&min_price=742&max_price=15477&product_cat=bodi-teddi&pa_color=purple
    After price filter has been applied (re-applied, in this case) it becomes:
    store?min_price=581&max_price=15477&product_cat=bodi-teddi

    Jeckstart

    (@jeckstart)

    So here’s simple js solution which works for me
    (the only bad thing is, you have to specify taxonomy slug in there, or at least part of it)

    // 1.Get query string
    var qs = (function(a) {
    	if (a == "") return {};
    	var b = {};
    	for (var i = 0; i < a.length; ++i)
    	{
    		var p=a[i].split('=', 2);
    		if (p.length == 1)
    			b[p[0]] = "";
    		else
    			b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " "));
    	}
    	return b;
    })(window.location.search.substr(1).split('&'));
    
    // 2.Store needed keys in woocommerce's html
    for (var key in qs)
    {
    	if( key.indexOf('pa_') == 0 || key == 'stock' || key == 'swoof' ||
    		key == 'YOUR_TAXONOMY' )
    	{
    		$( ".price_slider_wrapper .price_slider_amount" ).append('<input type="hidden" value="' + qs[key] + '" name="' + key + '">')
    	}
    }
    Plugin Author RealMag777

    (@realmag777)

    Hello Jeck
    Thank you for feedback 😉
    I will include all fixes in the next version …

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Price Range Filter?’ is closed to new replies.