Automattic / Automattic/jetpack
Infinite Scroll doesn't respect the sort order for products in WooCommerce
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
#### Steps to reproduce the issue
1. Enable infinite scroll using the other two options outside of the default theme behavior
2. View your shop page and its default sort order for your products.
3. Select the More Products button
#### What I expected
In this instance, the products are sorted by latest and they should remain sorted by latest when infinite scroll is used.
#### What happened instead
Instead, once infinite scroll kicks in they get sorted by Alphabetical
**Screenshots**
This is the correct set of products that should show on page 2, or the products that should be shown after selecting the More Product.

But you start seeing these using Infinite Scroll

Contributor guide
Research direction
Reproduce the issue on the shop page using the More Products button with infinite scroll enabled, comparing the default latest sort order with the loaded products. Trace the infinite-scroll loading path from that button and verify that subsequent products preserve the shop's selected sort order rather than switching to alphabetical order.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- 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