Products Repeating on Pagination After Using Shuffle Code on Shop Page

This topic has 3 replies, 2 voices, and was last updated 4 months, 1 weeks ago ago by khurram virk

  • Avatar: khurram virk
    khurram virk
    Participant
    July 27, 2025 at 12:52

    Dear Sir,
    Good day!

    I wanted to implement the functionality to shuffle products on every visit/refresh of the shop page. I followed your suggestion and added the code you provided in this thread:

    🔗 Previous chat reference: https://www.8theme.com/topic/shuffle-product-order-on-every-visit-to-shop-page/#post-449363

    The shuffle works perfectly on the first page, but I’m now facing a new issue. When I go to the second, third, or fourth pages, I see that products start repeating—some of the items from page 1 appear again on page 2 and so on.

    📸 Screenshot showing repeated products:
    https://snipboard.io/l1FeBq.jpg

    Could you please guide me on how to shuffle products on each refresh without repeating any products across paginated pages?

    Looking forward to your response.

    Thank you.

    2 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    July 28, 2025 at 07:17

    Dear @Khurram Virk,

    Thank you for reaching out.

    We regret to inform you that the custom code you are using is not compatible with AJAX pagination or infinite scroll functionality.

    We kindly recommend switching to the standard pagination mode, which refreshes the page with each navigation.

    Should you have any further questions or need assistance, please do not hesitate to contact us.

    Best regards,
    The 8Theme Team

    Avatar: khurram virk
    khurram virk
    Participant
    July 29, 2025 at 12:42

    Thanks for the support! My topic “Products Repeating on Pagination After Using Shuffle Code on Shop Page” has been successfully resolved.

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

The issue related to '‘Products Repeating on Pagination After Using Shuffle Code on Shop Page’' 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.