Show backordered items in admin menu

This commit is contained in:
claudiulodro 2017-11-14 13:56:56 -08:00
parent cf7bc61b99
commit dbf6db9373
1 changed files with 2 additions and 0 deletions

View File

@ -453,6 +453,8 @@ class WC_Admin_Post_Types {
case 'is_in_stock':
if ( $the_product->is_in_stock() ) {
$stock_html = '<mark class="instock">' . __( 'In stock', 'woocommerce' ) . '</mark>';
} elseif ( $the_product->is_on_backorder() ) {
$stock_html = '<mark class="onbackorder">' . __( 'On backorder', 'woocommerce' ) . '</mark>';
} else {
$stock_html = '<mark class="outofstock">' . __( 'Out of stock', 'woocommerce' ) . '</mark>';
}