I solved this by adding additional action into \S123\Includes\Woocommerce\S123_Product::s123_register
add_action('woocommerce_checkout_order_processed', array( $this, 's123_createInvoice_for_new_order' ), 1 );
and method:
public function s123_createInvoice_for_new_order($order_id)
{
$order = wc_get_order($order_id);
$this->s123_createInvoice($order_id, null, $order->get_status());
}
-
This reply was modified 4 months, 2 weeks ago by resurcer.