This question already has an answer here:
I'm trying to add some text only on the specific products of determinate category in woocommerce
, I tried to add this code in plugins/woocommerce/single-product/meta.php
but don't work:
if (is_category('box-mod') || has_category('box-mod',$post->ID)) {
echo "Message: available on march";
}
</div>