Use woocommerce_notify_no_stock_amount not 0, Closes #5035

This commit is contained in:
Mike Jolley 2014-03-04 14:46:17 +00:00 committed by Coen Jacobs
parent 914308765e
commit fb20fc87b6
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ class WC_Product_Variable extends WC_Product {
continue; 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; continue;
} }