Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
We sell custom neon signs and use personalisation tools to do this, which means every time someone adds their design to their basket it is saved as a brand new product (regardless if they order or not).
I'm trying to set up a Shopify flow so that every time a new product is created it's tagged with "Created [DYNAMIC DATE}" Ideally something that would read like "Created 7 April 2024" for example.
I found a load of advice in using liquid syntax to do this, and the flow is working but it's not actually pulling the dynamic date into the tag label. It appears exactly as typed.
This is the kind of thing I've been using:
Created { product.created_at | date: "%b %d, %y" }
Created { product.created_at | date: "%Y-%m-%d" }
I've tried product.createdAt and loads of different date variants that match PHP formats, but no luck! All my labels come out saying exactly what I set as the tag, not with dynamic dates.
ag
Does anybody have any advice (that isn't another app or reporting tool)?
Cheers,
Kerri
Solved! Go to the solution
This is an accepted solution.
That makes sense why it wasn't working! Thanks for the advice, I looked for the variable in flow and it's working now!
For anybody else searching this how to automatically tag products with their creation date in Shopify using Flow:
{{product.createdAt | date: "%d-%m-%y"}}
Cheers Paul!
You've made up some variables that don't exist in Flow. If you are unsure about variable names, use "Add a variable" to add them. It will show you the syntax, which in this case is {{ product.createdAt }}
Note that the brackets are {{ and }} not { and }. I'm not sure what your are referring to with PHP, but this is Liquid not PHP. See https://shopify.github.io/liquid/filters/date/
This is an accepted solution.
That makes sense why it wasn't working! Thanks for the advice, I looked for the variable in flow and it's working now!
For anybody else searching this how to automatically tag products with their creation date in Shopify using Flow:
{{product.createdAt | date: "%d-%m-%y"}}
Cheers Paul!
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024