title: Removing Add To Cart from WooCommerce Loop only on one product
body: <p>Trying to remove the add to cart button only from product in the product loop and add some text instead. </p>
  
  <p>The following code does remove the button, but also from all buttons after the condition has been validated:</p>
  
  <pre><code>function remove_purchase_buttons_from_loop() {
  
  if( $product-&gt;id == $_product-&gt;id ) {
      remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
      add_action( 'woocommerce_after_shop_loop_item',  'level_already_in_cart_notice', 10 );
         }
  </code></pre>
  
  <p>}</p>
  
  <pre><code>add_action ('woocommerce_before_shop_loop_item', 'remove_purchase_buttons_from_loop'));
  </code></pre>
  
  <p>I understand why this happening but what is the right solution</p>