• Hi guys,
    we notice some compatibility problems with Product Filters for WooCommerce plugin (WooCommerce original plugin). When we usa filters them work, but when we scroll down other products are loaded, without respecting filter rules.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Giuseppe Madaudo

    (@askmagic)

    Hi there,
    could you share with us a link to your website where we can see the issue?

    Thread Starter rogi96

    (@rogi96)

    Plugin Support Andrea Grillo

    (@agengineering)

    Hi @rogi96

    the issue seems to be related with the pagination. Unfortunately we have never tested this filter plugin with our infinite scrolling.

    Is this a FREE plugin ? If yes we can try to fix this issue.
    Let me know.

    Thread Starter rogi96

    (@rogi96)

    Ciao Andrea!
    Unfortunately this plugin is a premium plugin from woocommerce: https://woocommerce.com/products/product-filters/

    Plugin Support Andrea Grillo

    (@agengineering)

    Ciao @rogi96

    in this case you can try to contact the plugin author and ask this:

    Hi there,

    I have a conflict between your plugin and the YITH Infinite Scrolling. After investigation YITH tell to me that we need to re-init the infinite scrolling plugin after a filter was apply.
    Could you have a js event triggered that we use for that ?

    The plugin author understand what we need 🙂

    • This reply was modified 3 years, 6 months ago by Andrea Grillo.
    Thread Starter rogi96

    (@rogi96)

    This is their answer: “we have not tested the extension with YITH Infinite Scrolling; there are thousands of plugins and it’s not possible for us to test our plugins with all of them.

    Given that you’ve identified the issue with YITH and they mentioned that re-init has to be done for their plugin, I recommend checking with them for a solution.”

    Plugin Support Leanza Francesco

    (@leanzafrancesco)

    Hi,
    unfortunately we don’t have access to the code of WooCommerce Product Filters plugin.
    However, we’ve just found the “JS event” triggers used by of WooCommerce Product Filters, by inspecting the JS code of your site:
    – wcpf_before_ajax_filtering
    – wcpf_after_ajax_filtering

    Please, try adding the following code snippet to your theme functions.php

    if ( ! function_exists( 'yith_infs_customization_wc_product_filters' ) ) {
    	add_action( 'wp_enqueue_scripts', 'yith_infs_customization_wc_product_filters', 99 );
    	function yith_infs_customization_wc_product_filters() {
    		$js = "( function( $ ){
    				$( window ).on( 'wcpf_before_ajax_filtering', function(){
    					$( window ).unbind( 'yith_infs_start' );
    				});
    				
    				$( window ).on( 'wcpf_after_ajax_filtering', function(){
    					$( yith_infs.contentSelector ).yit_infinitescroll( infinite_scroll );
    				});
            } )( jQuery );";
    
    		wp_add_inline_script( 'yith-infs', $js );
    	}
    }

    and let us know if this will do the trick!

    Thread Starter rogi96

    (@rogi96)

    YES, it is working! 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PROBLEM WITH Product Filters for WooCommerce’ is closed to new replies.