I have created some custom fields for my product in wocommerce. I want to add those custom fields under title in cart page. This is the code I am using but with no result.
add_filter( 'woocommerce_cart_item_name', 'add_isbn_in_cart', 20, 3);
function add_isbn_in_cart( $title, $values, $cart_item_key ) {
$custom_isbn = get_post_meta( get_the_ID(), '_isbn_field', true );
return $title . $custom_isbn;
}