Website Building » WooCommerce » How Do I Show All Items on One Page in WooCommerce?

How Do I Show All Items on One Page in WooCommerce?

Last updated on October 1, 2022 @ 2:16 pm

If you’ve ever used WooCommerce, you know that it automatically breaks up your products into pages. For example, if you have 12 products and WooCommerce is set to display 9 products per page, it will show your first 9 products on the first page, and the remaining 3 products on the second page.

There are times when you might want to show all of your products on one page. Maybe you’re running a sale and want to make it easy for customers to see all of the products that are included.

Or maybe you’re creating a product catalog and want to avoid having customers click through multiple pages.

Whatever the reason, there’s an easy way to show all items on one page in WooCommerce. All you need to do is add a simple piece of code to your functions.php file.

PRO TIP: If you are using WooCommerce to sell items on your website, it is important to make sure that all items are displayed on one page. This can be done by going to the WooCommerce settings and selecting the “Display” tab. From here, you can choose to display all products on one page.

Here’s the code:

add_filter( ‘loop_shop_per_page’, ‘show_all_products’ );

function show_all_products() { return -1; }

Once you add that code, all of your products will be displayed on one page. Of course, if you have a lot of products, this could result in a very long page. So you might want to consider adding a product filter plugin to help your customers find what they’re looking for more easily.

In conclusion, showing all items on one page in WooCommerce is easy to do with a simple piece of code added to the functions. This can be helpful in situations where you want to make it easy for customers to see all of the products that are included, or when you’re creating a product catalog and want to avoid having customers click through multiple pages.

Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.