Use woocommerce_notify_no_stock_amount not 0, Closes #5035
This commit is contained in:
parent
914308765e
commit
fb20fc87b6
|
@ -473,7 +473,7 @@ class WC_Product_Variable extends WC_Product {
|
|||
continue;
|
||||
}
|
||||
|
||||
if ( 'yes' === get_option( 'woocommerce_hide_out_of_stock_items' ) && "0" === get_post_meta( $child, '_stock', true ) ) {
|
||||
if ( 'yes' === get_option( 'woocommerce_hide_out_of_stock_items' ) && get_post_meta( $child, '_stock', true ) <= get_option( 'woocommerce_notify_no_stock_amount' ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue