From 0ba78556f48e2b7af083f1d9339d6d83425cb6b7 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Sat, 28 Jan 2012 15:37:13 +0000 Subject: [PATCH] get_sku --- admin/post-types/product.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/admin/post-types/product.php b/admin/post-types/product.php index 9af65bcf930..13281e34681 100644 --- a/admin/post-types/product.php +++ b/admin/post-types/product.php @@ -156,7 +156,7 @@ function woocommerce_custom_product_columns( $column ) { break; case "sku" : - if ( $sku = get_post_meta( $post->ID, '_sku', true ) ) echo $sku; + echo $product->get_sku(); break; case "product_type" : if( $product->product_type == 'grouped' ): @@ -198,17 +198,6 @@ function woocommerce_custom_product_columns( $column ) { echo $product->get_total_stock().__(' in stock', 'woocommerce'); endif; break; - case "visibility" : - /** - * show hidden visible product on colum Date - * Assuming that we have only show and hidden status - */ - if ( $product->visibility == 'hidden' ) : - echo '
'. __('Hidden', 'woocommerce'); - else: - echo '
'. __('Visible', 'woocommerce'); - endif; - break; } }