Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi there! Im using the Flow app for some tagging purposes such as New Arrivals, but I cannot really figure out how to set it for Best sellers. I want to make a collection that updates based on last 30 days best selling products.
You should be able to do this with a flow that saves a last 30 day sales total metafield to products on the order trigger - and then use that to define a collection. Depends on order volume though because flow is limited in how much data int can pull in at once.
Can you show me how this can be done as Im trying for several days now and cant figure it out?
Sorry my ability to provide free help here is limited, but if you're interested in help on a paid basis, the link is in my signature.
@FlashChoices - Give this a go:
First create a new Product Metafield (e.g. "Last Purchased Date") with type Date Time.
Create new workflow as follows:
Start when: Order created
Hi Robert Kanaan! Thank you for your reply! Can you show me how this needs to be done as Im trying now for 3 hours and cant figure it out.
This is what I made
Hi @FlashChoices - sure, here's what it looks like in Flow. Refine and test as needed.
Hi Robert! Thank you for that. Will test it right now
I have done the flow, but not sure of these 2 are correct. Could you please check on them? Thank you!
@FlashChoices Here's a closer look at those two. Make sure your using the correct namespace and key for the date time metafield you created.
Thank you Robert! Will try to make it that way and will wait for the day to see if it triggers correctly. Thank you once again for your help!
Sorry about that but I cant really find that value lineItemsForeachitem.product.lastPurchaseDate.value. Im only reaching to lineItemsForeachitem.product. and from there I cant find the rest of it. Can you help with that? Thank you!
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025