Website Building » WooCommerce » What Is Product Archive Page WooCommerce?

What Is Product Archive Page WooCommerce?

Last updated on October 1, 2022 @ 8:41 pm

Product archive pages are the pages that display all products in a grid. They are generated automatically by WooCommerce and can be customized by adding the following code to your theme’s functions.php file:

// Change number of products per 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

PRO TIP: The Product Archive Page is a WooCommerce add-on that allows you to display a product archive page on your WooCommerce store. This add-on is not compatible with all WooCommerce themes and may not work correctly with your theme.

// Return the number of products you wanna show per page.

$cols = 12;

return $cols;

: The default number of products per page can be changed in your theme’s settings. To do this, go to your WordPress Dashboard → Appearance → Customize → WooCommerce → Product Catalog and change the value for “Products per page”.

Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.