I need to create manual orders for the customers in the woocommere –> orders section and send them the link for payments.
The issue is that when i create the order, there is no option to save it. The order action requires the email confirmation to be sent to the user for me to save the order.
I have disabled the email notification from Woocommerce –> Settings –> emails –> Processing order but the “Customer invoice/ order details” don’t have an option to remove the notification.
I want to find a way where I can save the order but not send the email to the customer (instead i will send them a custom email with the order payment link)
any ideas?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
I won’t go in code details, but I would consider two different strategies among many others:
- using a custom query using WPDB class, based on WooCommerce queries;
- unhook all undesired filters and actions from WordPress, WooCommerce and other plugins.
I would probably start with the second one.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0