Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Using webhooks to prevent email notifications for new order

Using webhooks to prevent email notifications for new order

rmanke
Shopify Partner
189 0 59

Hello,

 

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?

Shopify Partner, software developer and designer.
Replies 2 (2)

Greenlyst
Shopify Partner
33 0 3

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

Abishek R Srikaanth | Co-Founder @ greenlyst.app
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
rmanke
Shopify Partner
189 0 59

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.

Shopify Partner, software developer and designer.