bobbingwide / vgc

VGC - Garden Vista Group theme
GNU General Public License v2.0
0 stars 0 forks source link

Number of products displayed per page #71

Open bobbingwide opened 10 months ago

bobbingwide commented 10 months ago

This issue copied from an email dated 7th November 2023.

Since the implementation of #59 there's been a reduction in the number of separate products displayed on the home page. This is a side effect of the logic that filters duplicate products ( products in the same range) converting them into the drop down.

Page Product ranges displayed Total Products represented
1 22 84
2 17 85
3 17 85

Prior to implementing this solution we attempted to reduce the number of duplicates being displayed on the first two pages by setting the menu_order for the most popular products

-26 for the products on the first page, -25 for the second page, etc.

See https://github.com/bobbingwide/gardenvista/issues/21#issuecomment-1612676556

Note: This option was chosen over a solution that adjusted a product's visibility... it had even more unwanted side effects

It's still possible to use the menu_order to fine tune the number of Product Ranges displayed on the first few pages, but it is a complex manual process.

We could try to improve the display to make it less obvious to the observant user by replacing the pagination controls 28Xhaow4b8qmc68T

with a load more button, that would support infinite scrolling.

A load more solution could also help for product category archive pages, and the store home page when sorted by other than the default sorting