Automattic / Automattic/jetpack

Infinite Scroll does not work correctly with Storefront when loading more categories on the Shop Page

Open
#21,929 2 comments 0 reactions 0 assignees View on GitHub
[Feature] Infinite Scroll [Focus] Compatibility [Plugin] Jetpack [Pri] Low Bug Customer Report [LEGACY]
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Jetpack

### Steps to Reproduce

1) Install the StoreFront Theme
2) Go to `Appearance > Customize > WooCommerce > Product Catalogue > Shop page display` and set it to show Categories
3) Go to `Jetpack Settings > Writing > Infinite Scroll` and then choose 'Load more posts in-page with a button'
4) Open the Shop Page and press the 'More Products' button, which should then cause the categories to be repeated

### A clear and concise description of what you expected to happen.

I expected it to list more categories or hide the button if no more categories exist

### What actually happened

The product categories are repeated

### Other information

Screen Recording:

https://user-images.githubusercontent.com/16253818/144423699-d964d9fa-99ac-454a-9915-27059aea3a62.mov

I could not replicate the issue with Twenty Twenty One, it seems specific to StoreFront.

32982913-hc

### Operating System

macOS

### OS Version

12.0.1

### Browser

Chrome/Chromium

### Browser Version(s)

96.0.4664.55

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the Storefront theme, category-only Shop Page settings, and Jetpack Infinite Scroll configured to use the “More Products” button. Trace the Shop Page loading behavior after the button is pressed; done means additional categories load without repeats, or the button is hidden when no categories remain.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.