I’m looking for 2 solutions please. One to disable the sending of the admin email when the order is completed but the amount is zero (= 0 €). The following snippet already does a lot of the work: https://www.businessbloomer.com/woocommerce-disable-customer-order-email-for-free-orders/ I just have to change the hook … but I get lost 😅 The second for enable account creation in order processing, only if order is “Completed”. I would like that that the both solutions are snippets that I can add to my functions.php file. How much to help me on this please?
I will try to be clearer: currently, during an order, as long as the minimum fields such as the email address are completed, the account is created and the identifiers sent, even if the customer has not completed his order and that he has not made the payment for example. I would like the creation of an account to be effective only if the order is completed.
The account is created after sending the billing information, however it is still created even if the order is not marked as “completed” (when payment has been made) , I would like the account to be created only if the payment went well (and the order marked as “completed”) in other words: I would like the account is created when the order is marked as “Completed” not just when billing information is sent.
Actually, when a customer fill the checkout BUT don’t paid, he receives an email with his login and credentials, I don’t want this, I would like that h receives this email only if payment is well made, or order marked as “completed”