• Hi there,

    I’m having an issue with the filter where when clicking next (or clicking a different page) on the pagination, it will often break and load a page displaying “0”. It seems the pagination gets stuck on the admin-ajax.php.

    I think there’s a conflict between Divi Engine and the filter. When disabling Divi Engine’s ajax settings, it breaks BeRocket, but I think this is what I need to stop the error from happening.

    To see the problem, you can flick through the pagination at the bottom.

    I’ve consulted DiviEngine (developers of BodyCommerce) and they responded with: “Our initial investigation and JavaScript error log point to the issue being how BeRocket is handling the Ajax requests, as it preloads the first pagination page, but fails on the second load after that. They should not be depending on other plugins’ AJAX functionality. Can you please contact them about this issue and let us know what solution they provide you? If they give us some information about our plugin breaking something, please pass it on to us so that our developers can take a look at that info and see if there is anything for us to fix.”

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    did you resolve your problem?

    Best, Greg

    • This reply was modified 1 year, 6 months ago by grzegit.
    Thread Starter 911996c4s

    (@911996c4s)

    Hi Greg! No. I now also have an issue where the product loop disappears as you go further down the pagination!

    Plugin Author RazyRx

    (@razyrx)

    Hello,

    Plugin do not use admin-ajax functionality to get products from next page and in most cases not compatible with plugins that use it.
    Also on first page load plugin do not change anything with products.

    Please check PHP error log and WordPress debug log maybe it has some error.

    Regards,
    Oleg

    Thread Starter 911996c4s

    (@911996c4s)

    Hi Oleg,

    Sorry, I don’t understand your second sentence regarding first-page load.

    I’ve been unable to find logs with errors that are relevant. However, I’m struggling to wrap my head around the DiviEngine BodyCommerce product loops being compatible with BeRocket for 6-9 months and then breaking after a (likely) update – which obviously wasn’t an issue I picked up when updating the staging site. What has caused this incompatibility with the ajax? (That’s not necessarily something you can answer, I know)

    In the interim period, I’ve found I could fix the pagination by switching to an infinite scroll.

    I’ve also had to turn the ajax settings off in BeRocket which has resulted in the filter working as expected. Previously, applying the filter would essentially sort the products applicable to that filter to the top of the page and then load products after it which were not within the filter parameters.

    However, I’d prefer the filter to load by ajax, rather than a fresh page load as it makes the experience clunky. Any ideas?

    Thanks!

    • This reply was modified 1 year, 5 months ago by 911996c4s.
    Plugin Author RazyRx

    (@razyrx)

    Hello,

    We will check issue with bodycommerce on our test environment.

    Regards,
    Oleg

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pagination Issue – admin-ajax returns “0” when going to next page’ is closed to new replies.