Hello,
I creating order programatically something like:
$order_id = wp_insert_post( [ ... ] );
$order = wc_get_order( $order_id );
...
$order->save();
I got a question: how to assign inventories to order items? Corresponding option "Auto-assign inventories to WC Orders" doesn't work in this case.
Thank you