Using 'before_checkout' hook , im doing some calculations with the cart item data which is before payment. I need to send those data to order item meta in another hook like 'woocommerce_thankyou' after payment is done.
Is there a way to relate the cart items and its corresponding order which is created?