• Resolved dreamlabarno

    (@dreamlabarno)


    Hello,

    When there are no more products it should stop loading. But instead it just repeats the previous products. Any idea how to fix this?

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter dreamlabarno

    (@dreamlabarno)

    Any idea about this?

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    when he plugin is disabled, hod does the pagination work? Once the products are finished, what does the pagination shows?

    Thread Starter dreamlabarno

    (@dreamlabarno)

    It shows that there are 2 pages available and doesn’t load anymore products. I can disable it and take a screenshot if that helps?

    Thread Starter dreamlabarno

    (@dreamlabarno)

    Hi there,

    I have disabled the plugin at the moment so you can see what it does when de plugin is not active.

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    Try to use these selector and let us know if they work:

    Navigation Selector: .pagination
    Next Selector: .pagination .next
    Item Selector: .product_con
    Content Selector: .products

    Best regards

    Thread Starter dreamlabarno

    (@dreamlabarno)

    Hello,

    Thanks for the the reply.

    Unfortunately there are still more products loaded then there are in the shop. There are 15 products and as soon as all of those are shown it starts repeating them.

    Best regards

    Thread Starter dreamlabarno

    (@dreamlabarno)

    Hello,

    Any other ideas?

    @dreamlabarno

    If you are familiar with adding code to your themes functions.php you can try this code.

    add_filter( ‘post_class’, ‘filter_product_post_class’, 10, 3 );
    function filter_product_post_class( $classes, $class, $product_id ){
    if( in_the_loop() )
    $classes[] = ‘mainproduct’;
    return $classes;
    }

    On this line enter the setting class you have under ITEM SELECTOR in the infinite scrolling settings

    $classes[] = ‘PUT YOUR CLASS HERE’;

    • This reply was modified 4 years, 1 month ago by agod.
    Plugin Author YITHEMES

    (@yithemes)

    Hi @dreamlabarno,

    Let us know if you tried the @agod code.

    Thread Starter dreamlabarno

    (@dreamlabarno)

    Hello,

    Thanks @agod for the code but unfortunately it still loads more products than there are actually in the shop.

    @yithemes Is there anything else I can provide that would make it easier for you to help me?

    Regards

    Plugin Author YITHEMES

    (@yithemes)

    Hi @dreamlabarno

    We see you using another Infinite Scrolling plugin, have you added it to replace the YITH one or is a feature of your theme ?

    Let us know.
    Have a nice day

    YITH

    Thread Starter dreamlabarno

    (@dreamlabarno)

    Due to time constrains I have switched to a different solutions. Thanks for the help anyway.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Infinite loading in shop’ is closed to new replies.