If product is in category then…

Q: I’m trying to get this going:

If product X is in category 43, then display this.

A: Try this one:

 if ( has_term( 'male', 'product_cat' ) ) {
         This is a male products
 }