Display Different Content for Different Categories in WooCommerce

Display different content for different categories.

if ( is_product_category() ) {
  
  if ( is_product_category( 'shirts' ) ) {
    echo 'Hi! Take a look at our sweet tshirts below.';
  } elseif ( is_product_category( 'games' ) ) {
    echo 'Hi! Hungry for some gaming?';
  } else {
    echo 'Hi! Check our our products below.';
  }

}
trudeau334