Automattic / Automattic/jetpack

"more products" button for Infinite Scroll loads products using incorrect template in WooCommerce shop loop using Twenty Seventeen Theme

Open
#17,846 1 comment 0 reactions 0 assignees View on GitHub
[Feature] Infinite Scroll [Pri] Low Bug
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

The "more products" button for Infinite Scroll loads products using incorrect template in WooCommerce shop loop using Twenty Seventeen Theme

#### Steps to reproduce the issue

1. Go to Jetpack > Settings > Writing
2. Under Infinite scroll, select 'Load more posts in page with a button' and save settings.
3. Set posts per page to 3 or some number that will force pagination
WooCommerce customizer settings to 3 per row and null value for number of rows (though I believe setting 1 also triggers the same result)
4. Enable Twenty Seventeen theme
5. Go to WooCommerce shop loop archive
6. Click the "more products" button

#### What I expected
The additional products would load in the sample style as the existing products (using the WooCommerce `content-product.php` template.

#### What happened instead
It looks like the new products are loaded in the theme's default loop template, not the WooCommerce one.

**Screenshots**
![image](https://user-images.githubusercontent.com/507025/99830675-43690700-2b1b-11eb-89fe-6e0c8c291e84.png)

Contributor guide

Open the contributing guide

Research direction

Start with the Infinite Scroll settings path under Jetpack > Settings > Writing and reproduce the issue on a WooCommerce shop loop with Twenty Seventeen, using the stated pagination and product settings. Compare the loaded products with the existing WooCommerce content-product.php template; done means the “more products” button renders additional products in the same style and template.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.