From af378a619d75ada869bb6266d94eb20569ddd880 Mon Sep 17 00:00:00 2001 From: Manos Psychogyiopoulos Date: Tue, 3 Jan 2017 21:40:06 +0200 Subject: [PATCH] fix undefined qty_ordered variable --- includes/wc-stock-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-stock-functions.php b/includes/wc-stock-functions.php index ee7025dc43d..db122cc2cc2 100644 --- a/includes/wc-stock-functions.php +++ b/includes/wc-stock-functions.php @@ -100,7 +100,7 @@ function wc_reduce_stock_levels( $order_id ) { } if ( $new_stock < 0 ) { - do_action( 'woocommerce_product_on_backorder', array( 'product' => $product, 'order_id' => $order_id, 'quantity' => $qty_ordered ) ); + do_action( 'woocommerce_product_on_backorder', array( 'product' => $product, 'order_id' => $order_id, 'quantity' => $qty ) ); } } }