• Resolved maipiusenza

    (@maipiusenza)


    Hi, I’m using your two filters “YITH WooCommerce Ajax Product Filter” and “YITH Infinite Scrolling”.

    Without using any filter, the infinite scrolling works well, while as I try to filter the results, it duplicates the products filtered. So I read for example “showing 10 products”, but I see 34 items (the number changes as i check or uncheck the filters), and some product is duplicated.

    The site uses DIVI as theme and the scrolling settings have been done following these instructions:
    https://intercom.help/elegantthemes/en/articles/4532907-infinite-scroll-for-divi-shop-module

    The site is under development, I can provide the url on a private message.

    Thanks

    • This topic was modified 2 years, 10 months ago by maipiusenza.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Pablo Pérez

    (@pperez001)

    Hi there,

    Hope you are having a good day.

    Unfortunately is not possible to provide you an email, however, it seems the issue should between your theme and YITH WooCommerce Ajax Product Filter, as the theme doesn’t contains the standard wrapper with the id #content.

    To give the filters a proper selector for the filtering, you can add the following code in your functions.php of your current theme’s folder:

    if( ! function_exists( 'yith_wcan_content_selector' ) ){
    
         function yith_wcan_content_selector( $selector ){
    
                  $selector = '';
    
                  return $selector;
    
         }     
    
         add_filter( 'yith_wcan_content_selector', 'yith_wcan_content_selector' ); 
    
    }

    And set the value of $selector with a css selector ( class or id, but it has to be unique in the page) of a wrapper that contains the filters and the product list.

    Please try this and let me know if the issue is fixed.

    • This reply was modified 2 years, 10 months ago by Pablo Pérez.
    • This reply was modified 2 years, 10 months ago by Pablo Pérez.
    Thread Starter maipiusenza

    (@maipiusenza)

    Works perfectly with
    $selector = ‘#page-container’;
    (Default DIVI container)

    Thanks!

    • This reply was modified 2 years, 10 months ago by maipiusenza.
    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    you’re welcome, we were happy assist you.

    If you are satisfied with our product and our support, don’t hesitate write a review, we’ll appreciate it too much ??

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter results duplicated with YITH Infinite Scrolling’ is closed to new replies.