Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Native approach to making product inactive on a specific date.

Native approach to making product inactive on a specific date.

Jeff1843
Shopify Partner
4 0 2

Hi all,

Is possible to make a product unavailable to online store or even make the product draft on a specific date?
I tried launchpad and Shopify flow, but I can't seem to get ?

Replies 2 (2)

paul_n
Shopify Staff
1433 157 332

You could use a "Scheduled time" trigger to accomplish that. Basically, do that, use "Get product data" to find whatever products you want to make unavailable (by sku or tag or id), use the "For each" action to loop over each item. And "hide product" action to hide them.

 

Reference for the query filters on a product:

https://shopify.dev/docs/api/admin-graphql/2023-01/objects/QueryRoot#connection-queryroot-products

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
paul_n
Shopify Staff
1433 157 332

Actually, I added an example template to the template library: 

https://shopify.com/admin/apps/flow/web/editor/templates/bdd77772-7f06-4bfc-b899-c4cecdd4626d

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.