title: Display purchase note and attribute on cart and checkout page in WooCommerce
body: <p>The following code works and adds the purchase note to the cart items.</p>
  <pre class="lang-php prettyprint-override"><code>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' =&gt;  $post_data-&gt;_purchase_note );
      return $other_data;
  }
  </code></pre>
  <hr />
  <p>However, I always get &quot;:&quot; as result, for products that don't have a note.</p>
  <p>I also need to add a specific attribute aswell under the note.</p>
  <p>Any advice?</p>