I have found no way to stop Shopify from sending new order emails to customers when an order is marked "Pending".
Is it possible to set up a webhook that prevents the email from being sent out? Possibly by replacing the email notification trigger to do nothing?
I assume when you say marked as "Pending", that you are creating a fulfillment request. If that is right, then there is a property "notify_customer" that can be set to false when you are create the fulfillment. Here is the docs for it https://help.shopify.com/en/api/reference/shipping-and-fulfillment/fulfillment#create-2019-07
Thanks! Not exactly what I was looking for, though.
Is there a way to interrupt the button on the admin page for draft orders? I need to insert code to prevent the email from being sent if the administrator marks the order as pending in the Draft Orders page.
I am aware of how to do it in an app, but I need to interrupt the built in functionality in Shopify.