Number of results on "shop" pages

Hello :slight_smile:

I was wondering if it was possible to increase the “number of results” in the shop pages.

I would like my pages to show all the results (or products) on the same page (so that my customers don’t have to go to page 1, click on to page 2, etc.)
I hope that made sense.

Thank you for your help!!

Hi Nadia,

Thanks for writing in! To do that, first you need to setup a child theme and activate it by following our guide here (https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57). Then you can add the following code into your child theme’s functions.php file.

/**
 * Change number of products that are displayed per page (shop page)
 */
add_filter( 'loop_shop_per_page', 'new_loop_shop_per_page', 20 );

function new_loop_shop_per_page( $cols ) {
  // $cols contains the current number of products per page based on the value stored on Options -> Reading
  // Return the number of products you wanna show per page.
  $cols = 100;
  return $cols;
}

You can try increasing number of products (100), to show in a particular page.

Hope that helps.

Yes that worked! Thank you so much :slight_smile:

You’re most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.