This week to maintain a customer’s e-commerce, he requested that the add to cart button be removed. After much searching I found this solution. And as other people may need I decided to share here the good way to do this.
You need only put the code below in your functions.php file.
/**
* Hide add to cart buttons.
*/
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart' );
add_filter( 'woocommerce_is_purchasable', '__return_false' );