Automatically turn off « Continue selling when out of stock » when product is back in stock

Solved

Automatically turn off « Continue selling when out of stock » when product is back in stock

Amal_djebali
Excursionist
19 1 7

Hello,

 

I am looking to automate some backend tasks.

When a product is out of stock and I know that there is stock coming soon, I set a pre-order tag and I check : Continue selling when out of stock.
When the product is back again in stock, I would like to automatically (or with a flow) remove the pre-order tag and uncheck the « Continue selling when out of stock » option.


Removing the tag is easy with Flow but I couldn’t find a way to uncheck the « Continue selling when out of stock » option.

Any ideas ?
Thank for your help,

Accepted Solution (1)
ryan_i
Shopify Staff
25 6 9

This is an accepted solution.

This could also be done with the new "Send Admin API request" action (docs). Below is an example of that action configured to continue selling the variant.

Screenshot 2024-08-06 at 10.43.34 AM.png

- Finding Flow useful? Leave us a review.
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.

View solution in original post

Replies 3 (3)

RPiii
Shopify Staff
162 27 49

It may be possible to update the inventoryPolicy, perhaps with a Send HTTP request action. 

Kalen_Jordan
Shopify Partner
803 39 147

Yeah that should work.

ryan_i
Shopify Staff
25 6 9

This is an accepted solution.

This could also be done with the new "Send Admin API request" action (docs). Below is an example of that action configured to continue selling the variant.

Screenshot 2024-08-06 at 10.43.34 AM.png

- Finding Flow useful? Leave us a review.
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.