Ok but how do i disable Add to Cart or Buy now from Specific Categories.
I used this code snippet on my functions.php and it didn’t work
add_action( 'wp', 'rudr_remove_add_to_cart_product_categories' );
function rudr_remove_add_to_cart_product_categories(){
if( is_product_category( 'virtual-consultations' ) ) {
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
}
}