Hello Beda,
Thanks for your answer. I understand better how it works now.
So I tracked in the Woocommerce backoffice what happens :
- when the form is submitted, a post is created as 'draft' (which is what I set), but no order is created.
- when the user proceeds to checkout, same, no order is created.
- when the user clicks on 'place order', then the order appears as 'On hold' in WC backoffice (and I've set the post to switch to 'pending')
If you say CRED Commerce can only react to WC order status changes, then right, nothing can be done because the corresponding order is not created while the draft post is itself already created.
The problems that remain for me in case a user submits the form but doesn't complete checkout are the following (and how I plan to deal with it) :
1. a draft is created but the payment is not complete and/or the cart is being emptied, leaving useless drafts hanging around
-> I will issue drafts to expire and get deleted within a day (or a week) if the order is not placed
2. but then, a draft could be deleted, while the cart not actually empty
-> the cart will be set to clear after a certain time as well
3. hide 'drafts' from the list of posts the user can see with conditional shortcodes. The user this way doesn't need to deal with them, they will be taken care automatically.
Thank you for the info on the notifications issue. I'm not setting these yet, but will do soon. Anyway, the fact that CRED Commerce emails are being sent on all status changes at the moment tells me that the way above is better.
If you see another piece of information that could improve this process, I welcome it !
Best,
Yann