This commit is contained in:
Mike Jolley 2012-01-28 15:37:13 +00:00
parent 0226faa96b
commit 0ba78556f4
1 changed files with 1 additions and 12 deletions

View File

@ -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 '<br />'. __('Hidden', 'woocommerce');
else:
echo '<br />'. __('Visible', 'woocommerce');
endif;
break;
}
}