Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi, i'm trying to customize standard automation of shopify flow to hide out of stock products.
I need to autohide not all products but only the ones that are out of stock after over 90 days, so customers can eventually preorder meanwhile the products is restocked.
I think that a variabile that i can consider is updated_at, but i don't know how to use it.
Can you help me?
thank you
Shopify doesn't store the dates when a product or variant goes out of stock. You could do that by setting a product metafield (you would need to define that metafield first through the Admin, something like a out_of_stock_date). The problem after that is that you cannot yet query by metafields. So you might need to use tags instead (which you can use in a query), setting it to something like "nostock_02_28_24"). Then you can use a "Get product data" query to get products that were expired 90 days ago (using tag:nostock_12_28_23). You'll need to write some liquid to get the write tag/date.
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