Solved

How can I adjust order waiting times based on weekdays?

Timo_Krause
Excursionist
28 3 9

We use the trigger order created to notify us if no shipment has been made within 36 hours.

It goes something like this:

 

Order created >> wait 36 hours >> check for shipping >> send Slack message if no shipping.

 

But now we have the problem that our warehouse is not always working on weekends. Therefore we would like to have it something like this:

 

Order created >> Check for weekday (if order is created between Sunday and Thursday) >> Wait for 36 hours. But if the order was created between Friday and Saturday, wait e.g. 48 hours.

 

But I have not found out how to create a check based on weekdays,
Is it possible somehow?

Do not wait for success, it is the result of your actions || Warte nicht auf Erfolg, der ist das Ergebnis deines Handelns
Accepted Solution (1)

G-L
Shopify Staff (Retired)
29 4 10

This is an accepted solution.

Hi @Timo_Krause 

one way you could approach is would be to print the day of the week this order was created on using a variable that prints the day of week in a tag or metafield, and later check again for that same value to determine if it's a weekday or a weekend order:

 {{ order.createdAt | date: "%a" }}

You can use a wait step for a few seconds to make sure the condition is applied on the updated item.

This way you can have different paths to manage your shipping processes. 

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 2 (2)

Jeff-Armstrong
Shopify Staff
33 2 1

Currently there is no way to check the current day of the week in Flow.

To learn more visit the Shopify Help Center or the Community Blog.

G-L
Shopify Staff (Retired)
29 4 10

This is an accepted solution.

Hi @Timo_Krause 

one way you could approach is would be to print the day of the week this order was created on using a variable that prints the day of week in a tag or metafield, and later check again for that same value to determine if it's a weekday or a weekend order:

 {{ order.createdAt | date: "%a" }}

You can use a wait step for a few seconds to make sure the condition is applied on the updated item.

This way you can have different paths to manage your shipping processes. 

To learn more visit the Shopify Help Center or the Community Blog.