SEO, AdWords, affiliates, advertising, and promotions
Hi,
We want to set up an automation in Shopify Email that checks if an order has been placed in the last X (say, 7) days before sending the email. The flow should ideally be: Order fulfilled > wait 60 days > check if order placed in last X days > if not, send email
The issue we're facing is that we need to choose a specific date for the 'order created' variable and not a date range. Is there some way such automations can be set up? We're very new to Shopify Email and any guidance would be great.
Thanks in advance!
Solved! Go to the solution
This is an accepted solution.
Shopify Email does not currently offer a built-in functionality to check if an order has been placed in a specific date range. However, there are a couple of workarounds that you can use to achieve this:
POST /admin/api/2022-10/automation/workflows.json
{
"workflow": {
"title": "Send email after 60 days if no orders placed in last 7 days",
"status": "active",
"triggers": [
{
"event": "order_fulfilled",
"conditions": [
{
"field": "fulfillment_status",
"operator": "eq",
"value": "fulfilled"
}
]
}
],
"actions": [
{
"action": "wait_time",
"params": {
"days": 60
}
},
{
"action": "check_orders_placed_in_last_x_days",
"params": {
"days": 7
}
},
{
"action": "send_email",
"params": {
"email_template": "order_placed_in_last_x_days"
}
}
]
}
}
This workflow will send the "order_placed_in_last_x_days" email template to the customer if no orders have been placed in the last 7 days. The check_orders_placed_in_last_x_days action would need to be implemented as a custom script that would query the Shopify API to check the order creation date.
Please note that these workarounds may require some additional effort and technical expertise. If you are not comfortable with coding or using third-party apps, We can discuss further to fix this for you
This is an accepted solution.
Shopify Email does not currently offer a built-in functionality to check if an order has been placed in a specific date range. However, there are a couple of workarounds that you can use to achieve this:
POST /admin/api/2022-10/automation/workflows.json
{
"workflow": {
"title": "Send email after 60 days if no orders placed in last 7 days",
"status": "active",
"triggers": [
{
"event": "order_fulfilled",
"conditions": [
{
"field": "fulfillment_status",
"operator": "eq",
"value": "fulfilled"
}
]
}
],
"actions": [
{
"action": "wait_time",
"params": {
"days": 60
}
},
{
"action": "check_orders_placed_in_last_x_days",
"params": {
"days": 7
}
},
{
"action": "send_email",
"params": {
"email_template": "order_placed_in_last_x_days"
}
}
]
}
}
This workflow will send the "order_placed_in_last_x_days" email template to the customer if no orders have been placed in the last 7 days. The check_orders_placed_in_last_x_days action would need to be implemented as a custom script that would query the Shopify API to check the order creation date.
Please note that these workarounds may require some additional effort and technical expertise. If you are not comfortable with coding or using third-party apps, We can discuss further to fix this for you
Thank you, this really helps. Coding doesn't seem like a viable option, so we will figure out the best 3rd party app option for our business.
Thanks again!
Good
User | RANK |
---|---|
8 | |
8 | |
3 | |
3 | |
3 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023