Hide "Stock status" field for grouped products

In the product admin page, the field "Stock status" should be hidden for grouped products as stock is controlled individually for each of the child products and setting a stock status in the parent product has no effect.

Fixes #20927
This commit is contained in:
Rodrigo Primo 2018-08-01 10:27:36 -03:00
parent 4f41f99cd2
commit 1274c61a7c
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ if ( ! defined( 'ABSPATH' ) ) {
array(
'id' => '_stock_status',
'value' => $product_object->get_stock_status( 'edit' ),
'wrapper_class' => 'stock_status_field hide_if_variable hide_if_external',
'wrapper_class' => 'stock_status_field hide_if_variable hide_if_external hide_if_grouped',
'label' => __( 'Stock status', 'woocommerce' ),
'options' => wc_get_product_stock_status_options(),
'desc_tip' => true,