Merge pull request #12746 from franticpsyx/fix-undefined-qty_ordered-var
[2.7] Fix undefined '$qty_ordered' variable in 'wc_reduce_stock_levels'
This commit is contained in:
commit
0479f4a127
|
@ -100,7 +100,7 @@ function wc_reduce_stock_levels( $order_id ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $new_stock < 0 ) {
|
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 ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue