Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi everyone,
I have a store that has a variant metafield called "delivery_date". We set the date to be in the future for when the variant is expected to be delivered.
I would like to create an action with a slack notification in the end:
When an order is placed -> if delivery_date > today -> send message.
However, because all metafield values are strings I cannot create this condition. Is there a way around this?
One alternative is to create a second daily flow:
Every day, get data for delivery_date, if <=today, then delete data; that way the flow above can work if the condition is set to "has value". But I don't know how to make this second flow work either
Any advice would be helpful! Thank you!
You can use Run code to get around this, because you can cast that string to a date.
Here's an example showing how to work with dates for a slightly different use case :https://github.com/Shopify/flow-code-examples/blob/main/run-code-examples/schedule-check-scheduled-t...
Thanks Paul! I'm not very familiar with code; are you able to run me through the logic of how it works, please?
Here's more details about the Run code step: https://help.shopify.com/en/manual/shopify-flow/reference/actions/run-code
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024