I have a Wordpress site with Woocommerce and the Divi Theme.
I have 2 goals:
1. When creating an order woocommerce auto generate a account with username and password. I would like the username to be generated out of a prefix + the order number, not the first part of customer email.
2. When and customer (only way is through placing an order) and new order is created I will get a order message like always, but this will also include the auto generated username (for exmaple "Prefix5555" where 5555 represents the order nr) and password for the customer. If and order is placed my an old customer ( loged in) i will only get the username.
The way to do this i guess is to first change the way woocommerce generates username when creating order. Then change the themplate for "admin new order" mail and include the information from "customer new account". Then also include the "customer new account" information with the order confirmation mail so we can turn off the "new account " email.
Please let me know if anything is unclear, and sorry for my bad english.