How to disable cart functionality from Woocommerce

woocommerce_is_purchasable woocommerce_single_variation

tested on

  • WordPress 5.3.2
  • WooCommerce 3.9.3
// DISABLING PURCHASE FUNCTIONALITY AND REMOVING ADD TO CART BUTTON FROM NORMAL PRODUCTS
add_filter( 'woocommerce_is_purchasable', '__return_false'); 

// REMOVING PRICE FROM VARIATIONS
remove_action('woocommerce_single_variation', 'woocommerce_single_variation', 10); 

// REMOVING ADD TO CART BUTTON FROM VARIATIONS
remove_action('woocommerce_single_variation', 'woocommerce_single_variation_add_to_cart_button', 20); 

Reference: