Home Forums WoodMart support forum Pagination issue with back button

Pagination issue with back button

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #338574

    forusp
    Participant

    I have an issue with pagination. When I set it to infinite scroll, it works but when scrolling down the URL changes to page2, page3 and so on. When I click a product on page 3 for example and go into that product and hit the back button, I go back to page 3. Page 1 and 2 products are missing.
    So it doesn’t take you to the previous page! Very confusing!
    Tried to disable the functionality and use a plugin instead, but cannot disable the pagination at all. Need a solution for this!

    #339082

    Hello,

    Please add this line to the functions.php of the child theme:

    add_filter( 'woodmart_load_more_button_page_url', '__return_false' );

    This customization of the URL would not change during the scroll.

    It is not possible to disable the pagination totally.

    This option enables the deault pagination: https://prnt.sc/22s0fsg

    Best Regards

    #341285

    forusp
    Participant

    This helps a bit, but when I use the back button it will not go back to the location I was last. For example, if I scroll down 4 pages and click a product to open it, I click the back button and will return to the “second” page (1 infinite scroll action).

    #341312

    Hello,

    This customization of the URL would not change during the scroll.

    It is not possible to disable the pagination totally.

    This option enables the deault pagination: https://prnt.sc/22s0fsg

    Best Regards

    #341437

    forusp
    Participant

    Thank you, but I’m asking about infinite scrolling, not default pagination.

    I tried using plugins, but it seems the theme applies some resizing on product, but it doesn’t do the same when products are loaded in ajax. Basically; we are stuck. Infinite scrolling in the theme does not work very well (back button loses location and the search page does not use infinite scroll at all) and plugins cannot work with the theme…

    We need a solution for this. Any help would be appreciated!

    #341502

    Hello,

    This is the way the infinite scroll works.

    We have provided the solution not to change the URL.

    If the infinite scroll is not appropriate, you can choose the pagination.

    Best Regards

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