Home Forums WoodMart support forum Split: infinite scrolling is bugged

Split: infinite scrolling is bugged

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #392679

    harshwe
    Participant

    Hello Luke,

    I think there is still some sort of bug with Load More button for products.
    You can test on Live site (site in Private area)

    On Home page, if we click on Load Moree button for ON Sale products tabs, then it loads few products. And on clicking Load More button again, the results started to appearing as duplicate.
    Same Products continue to show even more than 2 times each, if we continue to scroll, and happens for lot of products, randomly.
    https://i2.paste.pics/HQVM3.png

    PS: We had this issue since beginning of Theme installation on completely Fresh hosting. With No 3rd party plugins, No custom code in functions.php of child theme too. Just a clear installation with Demo content and very few products.

    We ignore this bug initially, as we had some other major or important issues, and need to have more products on site and few other works. Then forgot later-on. Now with this post, related to similar issue, it brings our attention, and then we thought to share our inputs, as well.

    If you want to test, you can do so on Staging site. Credentials in private area.
    You can switch to Parent theme, as well as can deactivate 3rd party plugins for testing, on Staging site.

    Regards

    • This topic was modified 3 years ago by harshwe.
    • This topic was modified 3 years ago by harshwe.
    • This topic was modified 3 years ago by harshwe.
    • This topic was modified 3 years ago by Luke Nielsen.
    #392707

    cesaicumpar
    Participant

    I have managed to find the code:

    add_filter( 'woocommerce_default_catalog_orderby', 'misha_default_catalog_orderby' );
    
    function misha_default_catalog_orderby( $sort_by ) {
    	return 'rand';
    }

    This was to randomize the order in which products are shown default in the product page. Perhaps you could help me with a solution to this?

    #392860

    Luke Nielsen
    Keymaster

    Hello,

    The “random” order cannot work well with the “load more” button so you should change the order for the “Product tab” element via the “Data settings” (more detail on the below screenshot).

    https://prnt.sc/rgt0s4fjE59y

    Kind Regards

    #392964

    harshwe
    Participant

    Hello Luke,

    I understand. But should not this be resolved, even if we use Random Order. As, it should show correct results, even if we use Random order.
    There seems No point in displaying repeat entries.

    Because, any other Data setting shows product in Static way, and shows results same way that we entered once.

    That way, visitors gets bored, and will be shown and presented with same Data, everytime they visit. And anytime they visit, they will See same products, which they might have viewed earlier. And that is Not the smart thinking to display them.

    Using Random Order, repeat customer and visitors will think that we have added New products and working continuously on site. And have dynamically changed site.
    Otherwise, the purpose of using Random Order gets defeated.

    Please have this fixed.

    Regards

    • This reply was modified 3 years ago by harshwe.
    • This reply was modified 3 years ago by harshwe.
    #393326

    Luke Nielsen
    Keymaster

    Hello,

    It cannot be fixed at all because for example the first page displays 10 random products, then you load the second 10 random products and it can take any products that were already shown on the first one so at the end it seems that they are duplicated.

    Kind Regards

    #393437

    harshwe
    Participant

    Hello Luke,

    I think I was not able to explain, or there might be some confusion. Let my try again.

    My point is –
    Say, if there are 16 products to be displayed as results, in Total (for any Product tab, with specific query). And if we set to display 8 product results, at a time, on screen.

    Then, after clicking Load More button, the page should show next 8 products (that is from 9-16 number), then, the Load More button, should Not work (or should Not be visible), at all for that Product tab and Query type. As All of the results, have already been displayed.

    That way, it will display exactly same number of products as well as in Random Order (As per Data query, results, product tab). And will Not Repeat the products.

    This is how, the Load More works in other major e-commerce sites also, in general.

    Regards

    #393609

    Luke Nielsen
    Keymaster

    Hello,

    I will send your suggestions to the team, they will consider it.

    I’d be happy to assist if you have any other questions or concerns.

    Kind Regards

Viewing 7 posts - 1 through 7 (of 7 total)