Archived topic
GPP 2.0 Issue with archive product pages
6 replies · Started by Juan Manuel on April 28, 2021
Hi, I just updated to GPP 2.0 and noticed that my product archives have a weird behaviour now. They still show the pagination section, result count and stuff as normal, but when I scroll down, it starts loading (like using Ajax) and:
- Shows breadcrumbs again but for page 2
- Shows category name again
- Shows a hooked custom field text (that should be displayed only once under product listing and pager)
- Doesn't show category description
- Starts showing page 2 products but in a broken 1-column layout
- If you keep scrolling until all the page 2 products have been shown, it does the same for page 3 and so on.
I have tested it and it worked fine with the previous GPP version, it breaks when updating to 2.0. Did something change?? I reviewed changelog and customizer options, but couldn't find anything related to product page loading/archive pages paging.
Thanks.
Hi there,
thats very peculiar - do you have the Infinite Scroll option enabled in Customizer > Layout > Blog ?
Hi David,
Despite not having a blog on the website, that feature was on. I set it off and now it works properly again.
It didn't come to my mind to search inside blog options for this feature lol but I guess this is not expected functionality?
Thank you!
We'll get that checked out ASAP, can't currently replicate the issue locally but we'll take a look - thanks for letting us know!
Thank you for such an awesome theme and support <3
Let me know if you want to dig deeper into this web, I can give you access to the staging site in case you need to.
Thank you - thats really appreciated. We're looking at this internally - so may come back and ask for access.
Found and fixed in 2.0.1 - thanks for the heads up!
For anyone else experiencing this, this temporary fix will help:
add_filter( 'option_generate_blog_settings', function( $settings ) {
if ( is_post_type_archive( 'product' ) ) {
$settings['infinite_scroll'] = false;
}
return $settings;
} );