Fakoi

public function add_custom_html() {
global $post;
$product_id = $post->ID;
$categories = get_the_terms( $product_id, ‘product_cat’ );

if( empty ($categories)){
return;
}

$content = ”

Small Medium Large
USA 2-4 6-8 9-12
UK 4-6 8-10 12-14
India 2-4 6-8 10-12

“;

foreach( $categories as $cat ){
if( 15 == $cat->term_id ) {
echo $content;
}
}

}