The following code works and adds the purchase note to the cart items.
add_filter( 'woocommerce_get_item_data', 'wc_test', 10, 2 );
function wc_test ( $other_data, $cart_item ){
$post_data = get_post( $cart_item['product_id'] );
$other_data[] = array( 'name' => $post_data->_purchase_note );
return $other_data;
}
However, I always get ":" as result, for products that don't have a note.
I also need to add a specific attribute aswell under the note.
Any advice?