• Hi, congratulations on your plugin, it works perfectly.

    I recently encountered a problem with the Infinite Scroll plugin and Variation Swatches.

    On the shop page or in categories, when you scroll down everything works perfectly. As soon as Infinite Scroll comes into operation and loads the next products, you can no longer select any variation of the newly loaded products, the clear variations link is always not operational.

    Is there a solution to this problem?

Viewing 1 replies (of 1 total)
  • Plugin Support Pablo Pérez

    (@pperez001)

    Hi there,

    This problem might be cause by an incompatibility with your “Variation Swatches” plugin.

    It might be easily fixed using a JS code to reinit the variation form, you will just the function from them to reinit and add to this code:

    if( ! function_exists( 'yith_infs_lazy_load_fix' ) ){
    function yith_infs_lazy_load_fix(){
    $js ="jQuery(document).on('yith_infs_added_elem', function(){
    //Custom code
    });";
    wp_add_inline_script( 'yith-infs', $js );

    }
    add_action( 'wp_enqueue_scripts', 'yith_infs_lazy_load_fix', 20 );
    }

    Have a great day.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.