Infinite Scroll breaking with pagination

This topic has 9 replies, 2 voices, and was last updated 25 minutes ago ago by Andrew Mitchell

  • Avatar: Amy
    Amy
    Participant
    February 5, 2025 at 13:28

    When scrolling through search results (using product archive template + elementor) the page is increased in the search bar (adds …/page/1, …/page/2, etc.), since this is done with AJAX it doesn’t create immediate issues, but when a site user goes to a product, then clicks the back button, the products don’t load properly, as they attempt to load from the page referenced in the URL

    Steps to reproduce
    1. Navigate to a product archive on our site (e.g. https://vintstreet.com/product-category/mens/)
    1a. Take note of the products at the top of the list
    2. Scroll down any amount – observe the change in URL
    3. Click into a product, then click back on your browser (often in top left corner)
    4. observe that the products being loaded are from the page number referenced in URL, and no products from previous pages are displayed.

    Please, contact administrator
    for this information.
    8 Answers
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    February 5, 2025 at 17:24

    Hello, Amy,

    Unfortunately, we are unable to view your page as we are encountering the error: “Too many redirects.”

    Also, we have noticed that your website is utilizing a large number of plugins. This could potentially impact the website’s performance, lead to errors, and affect its overall speed. To ensure optimal functionality and avoid such issues, we kindly ask you to manually review each plugin currently in use on your website.

    Let us know the results.

    Best regards,
    8Theme’s Team

    Avatar: Amy
    Amy
    Participant
    February 8, 2025 at 19:05

    Hi Andrew,

    Apologies that was caused by a redirect loop with a cloudflare proxy – this is now resolved.

    all plugins we have enabled are utilised in our site, so regrettably we aren’t able to remove any.

    I hope you’re able to figure out the issue as even when disabling all plugins except woocommerce, Xstore Core, Elementor, Elementor Pro, Dokan and Dokan Pro the issue was present. I have installed plugin detective which you’re welcome to use to check for conflicts causing the issue, but I couldn’t find any.

    I appreciate you looking into this and hope we can resolve it.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    February 10, 2025 at 17:29

    Hello, Amy,

    Thank you for providing access,

    Unfortunately, due to the browser’s functionality, we are unable to implement a return to the previous page with a focus on the specific product from which the transition was made. However, we can enable navigation to the default previous page. In this case, users will need to scroll to the product and wait for AJAX to load it.

    If this solution works for you, please provide us with FTP access and temporarily disable the CDN (if applicable)

    Best regards,
    8Theme Team

    Avatar: Amy
    Amy
    Participant
    February 11, 2025 at 14:02

    Hi Andrew,

    As long as the proposed solution doesn’t cause the user’s device to only render products from page 2 (for example) onwards, as it currently does, then I’m happy for you to proceed.

    I’ve included FTP credentials in the Private content area.

    Thanks

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    February 12, 2025 at 21:23

    Hello, Amy,

    Thank you for providing access. We have made some modifications, and we kindly ask you to review them.

    The following files have been updated:

    themes/xstore/js/modules/ethemePostProduct.min.js
    themes/vintage-child/functions.php

    Additionally, the following code has been added to functions.php

    <?php add_filter( 'etheme_et_js_config', function($etConfig) {  
        $etConfig['is_alt_shop_history'] = true;  
        return $etConfig;  
    });  
    ?>

    Unfortunately, we are unable to set this type of return as the default. Therefore, it is necessary to use a filter.

    Please let us know if you have any questions.

    Best regards,
    8Theme Team

    Avatar: Amy
    Amy
    Participant
    February 17, 2025 at 11:49

    Hi Andrew,

    I will look through the changes you made but I’ve had to disable the change you made temporarily as it was causing most of the site to stop working (object buffer error).

    If you can think of a quick fix for this it would be greatly appreciated, and if I manage to fix it I will let you know

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    February 18, 2025 at 17:48

    Hello, Amy,

    We have made some changes. Please check if the issue has been resolved. Also, kindly remember to clear your cache.

    Best regards,
    8Theme Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    March 21, 2025 at 17:50

    Dear Amy,

    We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!

    Click here to spread the love: https://themeforest.net/downloads

    Thank you for being an integral part of our journey!

    Best Regards,
    The 8Theme Team

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

The issue related to '‘Infinite Scroll breaking with pagination’' has been successfully resolved, and the topic is now closed for further responses

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