In WooCommerce, I need to get order ID right in checkout page of WooCoommerce, before payment, when the order is created.

I look at all sessions and tried to find out when order goes for payment in order_awaiting_payment session, but I need it before going for payment.
So I think about a solution that is make order when checkout page loaded (In fact make it ready for payment) and when checkout real complete update it.

How to get order ID in checkout page before order go for payment in WooCommerce?

I think there is some hook for this but I can’t find it.

Read more here: Get the order ID in checkout page before payment process


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: