title: Populate Woocommerce SKU on wishlist
body: <p>I done a bunch of research and testing and can't seem to get the unique SKU from the product page to populate the wishlist.</p>
  
  <p>I'm using YITH Woocommerce Wishlist and edited the wishlist.php file to include this code:</p>
  
  <pre><code>&lt;?php if( get_option( 'yith_wcwl_stock_number_show' ) == 'yes' ) : ?&gt;
                          &lt;td class="product-stock-number"&gt;
                              &lt;?php echo $product-&gt;get_sku(); ?&gt;
                          &lt;/td&gt;
                      &lt;?php endif ?&gt;
  </code></pre>
  
  <p>with this at the top:</p>
  
  <pre><code>global $product;
  </code></pre>
  
  <p>I'm getting this error:</p>
  
  <blockquote>
    <p>Fatal error: Call to a member function get_sku() on a non-object in /home2/cityrank/public_html/wp-content/plugins/yith-woocommerce-wishlist/templates/wishlist.php on line 142</p>
  </blockquote>
  
  <p>thanks in advance!</p>
  
  <p>EDIT:
  Here is the code for the price:</p>
  
  <pre><code>&lt;?php if( get_option( 'yith_wcwl_price_show' ) == 'yes' ) : ?&gt;
                          &lt;td class="product-price"&gt;
                              &lt;?php
                              if( $product_obj-&gt;price != '0' ) {
                                  if( get_option( 'woocommerce_tax_display_cart' ) == 'excl' )
                                      { echo apply_filters( 'woocommerce_cart_item_price_html', woocommerce_price( $product_obj-&gt;get_price_excluding_tax() ), $values, '' ); }
                                  else
                                      { echo apply_filters( 'woocommerce_cart_item_price_html', woocommerce_price( $product_obj-&gt;get_price() ), $values, '' ); }
                              } else {
                                  echo apply_filters( 'yith_free_text', __( 'Free!', 'yit' ) );
                              }
                              ?&gt;
                          &lt;/td&gt;
                      &lt;?php endif ?&gt;
  </code></pre>