I am creating a webhook that is triggered for the 'orders/paid' topic. From there, I add the order to an internal ERP, which returns some fields for the order. I am adding these fields to the 'note_attributes' parameter of the order using the Admin REST API. However, I need to include these fields before the order confirmation email is sent. Is it possible to achieve this?
In Shopify, the order confirmation email is typically sent after the order has been processed and confirmed. Unfortunately, Shopify does not provide a built-in way to customize or delay the sending of confirmation emails directly.
However, you can work around this.
Here's a suggested approach:
Create a Draft Order:
Send Confirmation Email for Draft Order:
This way, you have control over when the confirmation email is sent because you control when the draft order is marked as completed.
Dive into the world of Print-on-Demand and discover how it can transform your online busin...By Imogen Feb 19, 2024
Discover how to transform your online store into a delightful shopping destination. Learn ...By Ollie Feb 13, 2024