diff --git a/includes/wc-cart-functions.php b/includes/wc-cart-functions.php index 0772c502475..08d7ebec26a 100644 --- a/includes/wc-cart-functions.php +++ b/includes/wc-cart-functions.php @@ -73,7 +73,7 @@ function wc_add_to_cart_message( $products, $show_qty = false ) { $show_qty = false; } - if ( ! $show_qty ) { + if ( ! $show_qty && ! is_array( $products ) ) { $products = array_fill_keys( array_values( $products ), 1 ); }