Remove the stock data type on low stock threshhold input which can be blank

This commit is contained in:
Ron Rennick 2018-11-29 14:58:51 -04:00
parent 83cb978c9e
commit b7f87c8cd2
1 changed files with 14 additions and 13 deletions

View File

@ -71,19 +71,20 @@ if ( ! defined( 'ABSPATH' ) ) {
) )
); );
woocommerce_wp_text_input( array( woocommerce_wp_text_input(
'id' => '_low_stock_amount', array(
'value' => $product_object->get_low_stock_amount( 'edit' ), 'id' => '_low_stock_amount',
'placeholder' => get_option( 'woocommerce_notify_low_stock_amount' ), 'value' => $product_object->get_low_stock_amount( 'edit' ),
'label' => __( 'Low stock threshold', 'woocommerce' ), 'placeholder' => get_option( 'woocommerce_notify_low_stock_amount' ),
'desc_tip' => true, 'label' => __( 'Low stock threshold', 'woocommerce' ),
'description' => __( 'When product stock reaches this amount you will be notified by email', 'woocommerce' ), 'desc_tip' => true,
'type' => 'number', 'description' => __( 'When product stock reaches this amount you will be notified by email', 'woocommerce' ),
'custom_attributes' => array( 'type' => 'number',
'step' => 'any', 'custom_attributes' => array(
), 'step' => 'any',
'data_type' => 'stock', ),
) ); )
);
do_action( 'woocommerce_product_options_stock_fields' ); do_action( 'woocommerce_product_options_stock_fields' );