Automattic / Automattic/jetpack

Infinite Scroll doesn't respect the sort order for products in WooCommerce

Open
#20,160 2 comments 0 reactions 0 assignees View on GitHub
[Feature] Infinite Scroll Enhancement Good For Community
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.

Markup%202021-06-23%20at%2015 44 42

But you start seeing these using Infinite Scroll

Screenshot%20on%202021-06-23%20at%2014-15-07

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.