Automattic / Automattic/jetpack
Infinite Scroll overrides the WooCommerce Product Catalog settings for Categories
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
#### Steps to reproduce the issue
1. Have a site with Jetpack and WooCommerce installed
2. Create WooCommerce Products and set a Category and Subcategory structure
2. On Jetpack settings, set Infinite Scroll behavior to *"Load more posts as the reader scrolls down"*
2. On **Customizer > WooCommerce > Product Catalog**, set **Category Display** to display only Subcategories
#### What I expected
Categories should show only a list of Subcategories
#### What happened instead
Categories showed both a list of Subcategories and a list of Products loaded with Infinite Scroll
**Screenshots**

Screenshot: https://cld.wthms.co/yxoeWt
**Note**
Setting Infinite Scroll to follow default theme behavior fixes the issue.
Tested on a WordPress.com Business Plan site with Storefront and Twenty Nineteen
Contributor guide
Research direction
No source file or test is named. Reproduce with Jetpack and WooCommerce using Storefront or Twenty Nineteen, enable Infinite Scroll's load-more behavior, and set Product Catalog Category Display to subcategories only. Done means category pages show only subcategories rather than also loading products through Infinite Scroll.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100