If product is in sub-category show code
You can probably just make use of has_term( $term, $taxonomy, $post ) which will check if the specific post belongs to the term given You can do something like this (Edit: Add post ID if this is used in a function) global $post; if(has_term( ‘lucha’, ‘product_cat’, $post->ID )) { //do something if post has lucha term }else{ //do something … Read more