disable add to cart for one product woocemmerce code example
Example 1: woocommerce remove add to cart
// functions.php
add_filter( 'woocommerce_loop_add_to_cart_link', '__return_false' );
Example 2: remove add to cart woocommerce button
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart');