woocommerce remove product link in cart code example
Example 1: woocommerce remove add to cart
// functions.php
add_filter( 'woocommerce_loop_add_to_cart_link', '__return_false' );
Example 2: remove link from product name in woocommerce cart
add_filter( 'woocommerce_cart_item_permalink', '__return_null' );