Q:

Populate Woocommerce SKU on wishlist

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.
I'm using YITH Woocommerce Wishlist and edited the wishlist.php file to include this code:
<?php if( get_option( 'yith_wcwl_stock_number_show' ) == 'yes' ) : ?>
                        <td class="product-stock-number">
                            <?php echo $product->get_sku(); ?>
                        </td>
                    <?php endif ?>

with this at the top:
global $product;

I'm getting this error:

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

thanks in advance!
EDIT:
Here is the code for the price:
<?php if( get_option( 'yith_wcwl_price_show' ) == 'yes' ) : ?>
                        <td class="product-price">
                            <?php
                            if( $product_obj->price != '0' ) {
                                if( get_option( 'woocommerce_tax_display_cart' ) == 'excl' )
                                    { echo apply_filters( 'woocommerce_cart_item_price_html', woocommerce_price( $product_obj->get_price_excluding_tax() ), $values, '' ); }
                                else
                                    { echo apply_filters( 'woocommerce_cart_item_price_html', woocommerce_price( $product_obj->get_price() ), $values, '' ); }
                            } else {
                                echo apply_filters( 'yith_free_text', __( 'Free!', 'yit' ) );
                            }
                            ?>
                        </td>
                    <?php endif ?>

A:

Based on the code you added today...
I would propose trying the following instead:
$product_obj->get_sku();

For this particular page it seems they are not loading the product into $product, but instead using $product_obj(ect)

