woocommerce remove link to single product page only for one category code example
Example: remove link from product name in woocommerce cart
add_filter( 'woocommerce_cart_item_permalink', '__return_null' );
add_filter( 'woocommerce_cart_item_permalink', '__return_null' );