Infinite scroll for products - by tyaakow

This topic has 14 replies, 5 voices, and was last updated 9 years, 5 months ago ago by Eva Kemp

  • Avatar: tyaakow
    tyaakow
    Participant
    December 17, 2015 at 20:21

    Hi.

    I need to add infinite scroll to Legenda products archive pages
    -> I want to get rid of pagination and just have infinite scroll.

    I tried with Jetpack plugin and I even tried adding theme support for
    Jetpack infinite scroll in child theme functions.php,
    as per these instructions on Jetpack website,
    but to no avail. Im getting back javascript errors and didnt succeed adding it.

    Can anyone help me?

    13 Answers
    Avatar: Eva
    Eva Kemp
    Participant
    December 17, 2015 at 20:39

    Hello,

    You can change number of products to show all of them on one page.
    Please refer to the article:
    https://docs.woothemes.com/document/change-number-of-products-displayed-per-page/

    Regards,
    Eva Kemp.

    Avatar: tyaakow
    tyaakow
    Participant
    December 18, 2015 at 09:29

    Didnt resolve it..

    I added this to child theme functions.php (first part is to enable jetpack infinite scroll).
    Second part is from the link you gave, with change to load all products:

    
    function legenda_child_infinite_scroll_init() {
    	add_theme_support( 'infinite-scroll', array(
    	    'type'           => 'scroll',
    	    'footer_widgets' => false,
    	    'container'      => 'product-loop',
    	    'wrapper'        => false,
    	    'posts_per_page' => false,
    	) );
    }
    add_action( 'after_setup_theme', 'legenda_child_infinite_scroll_init' );
    
    add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 10000000000;' ), 20 );
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 18, 2015 at 10:12

    Hello,

    So have you resolved the issue?

    Best regards,
    Jack Richardson.

    Avatar: tyaakow
    tyaakow
    Participant
    December 18, 2015 at 10:48

    No, I was just saying what I tried so far.
    But no, the pagination just stays there.

    Jetpack infinite scroll gives js errors.

    Avatar: Eva
    Eva Kemp
    Participant
    December 18, 2015 at 17:12

    Hello,

    If you want to show all products on one page you need go to Settings -> Reading -> “Blog pages show at most” and then set the number value bigger than the number of your products.

    Regards,
    Eva Kemp.

    Avatar: tyaakow
    tyaakow
    Participant
    December 23, 2015 at 13:06

    Hi,
    that didnt seem to solve it.

    Do you know of any plugin or solution that is verified to work
    to have infinite scroll for product archives/categories/pages?
    For Legenda

    Avatar: Eva
    Eva Kemp
    Participant
    December 23, 2015 at 14:58

    Hello,

    Unfortunately we can’t suggest you any 3rd-party plugins as we didn’t test them with the theme and can’t guarantee their full compatibility.

    Please take our apologies.

    Regards,
    Eva Kemp.

    Avatar: tyaakow
    tyaakow
    Participant
    December 23, 2015 at 20:14

    For posterity – I found this plugin does a decent work:

    Infinite Ajax Scrolling for WooComerce

    Avatar: stan
    Stan Russell
    Participant
    December 24, 2015 at 08:04

    Hello tyaakow,

    thank you for your reply! Is your problem solved now?

    Regards,
    Stan Russell.

    Avatar: amitkrsinghal
    amitkrsinghal
    Participant
    December 24, 2015 at 17:20

    Not really, https://docs.woothemes.com/document/change-number-of-products-displayed-per-page/ explains to increase the product per page.

    We need the Infinite scrolling feature, so that when user scrolls down, more and more product should be displayed dynamically. A sample solution could be like the screenshot at https://wordpress.org/plugins/infinite-ajax-scrolling-for-woocommerce/screenshots/

    Trust this is a feature in Blanco Theme. How to use it?

    Avatar: Eva
    Eva Kemp
    Participant
    December 24, 2015 at 17:45

    Hello,

    There is no such feature in Blanco.
    You may try to use the plugin you’ve found, but we can’t guarantee its full compatibility with the theme. Sorry.

    Regards,
    Eva Kemp.

    Avatar: tyaakow
    tyaakow
    Participant
    December 24, 2015 at 20:12

    Im using this plugin with Legenda,
    and there were no issues with setting it up.

    I believe we can close this thread.

    Avatar: Eva
    Eva Kemp
    Participant
    December 24, 2015 at 20:18

    Hello,

    Ok. You can create a new topic if you have any questions.

    Thank you.

    Regards,
    Eva Kemp.

  • Viewing 14 results - 1 through 14 (of 14 total)

The issue related to '‘Infinite scroll for products’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.