Replies: 0
Hello. I am trying to add one link to a pdf file only in a certain category of woocommerce. I have this
add_action( ‘woocommerce_single_product_summary’, ‘alteracao_tecnica_2’, 20 );
function alteracao_tecnica_2() {
$has_term = has_term(‘aliancas’);
if($has_term){
echo ‘Tipo de Letra para Gravação‘;
}
else{
echo ”;
}
}
It is working for another purpose adding a text to ALL products on my website, but now I want to add another condition to display only in the category ALIANÇAS. To add a pdf file.
Can someone enlighten me?
Thanks!