fix undefined qty_ordered variable

This commit is contained in:
Manos Psychogyiopoulos 2017-01-03 21:40:06 +02:00
parent c560a65e1b
commit af378a619d
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) );
}
}
}