How to change number of products display in WooCommerce product listing page?

PHOTO EMBED

Fri Jun 05 2020 06:35:17 GMT+0000 (UTC)

Saved by @shahzaibkhan #php

/**
 * 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 = 9;
  return $cols;
}
content_copyCOPY

https://makersbyte.com/how-to-change-number-of-products-display-in-woocommerce-product-listing-page/