diff --git a/includes/class-wc-product-variable.php b/includes/class-wc-product-variable.php index 5a148156983..b3676e6b51c 100644 --- a/includes/class-wc-product-variable.php +++ b/includes/class-wc-product-variable.php @@ -300,7 +300,9 @@ class WC_Product_Variable extends WC_Product { continue; } - $available_variations[] = $this->get_available_variation( $variation ); + if( $this->get_available_variation( $variation ) ){ + $available_variations[] = $this->get_available_variation( $variation ); + } } $available_variations = array_filter( $available_variations );