Tag back-in-stock products

This guide will help you configure workflows to automatically tag out-of-stock and back-in-stock products in your Shopify store. Since Shopify does not retain past inventory data in its admin panel, this solution involves creating two workflows.

Workflow 1: Tagging Products as "Out-of-Stock"

This workflow will automatically add the "out-of-stock" tag to products when the inventory level of all the variants reaches 0.

Step 1: Click on the "Create Workflow" button at the top right corner of the app.

Step 2: Name the workflow to help you identify it later, and select Product as the workflow type.

Step 3: Enable workflow to trigger upon product creation and updation to ensure accurate tagging.

Step 4: Search for "inventory quantity" in the workflow conditions search box and select condition "Product->Variants->Inventory Quantity".


Step 5: Change the multi-operator to "All of" instead of "Any of".

Step 6: Configure the condition operator to less than or equal to 0.

Step 7: Configure the fixed tag "out-of-stock" to be added to the product if the product is out of stock.

Step 8: Configure the workflow to remove the tag "back-in-stock" which we will use in the second workflow to tag products that are back in stock. This will ensure that the back-in-stock tag is removed from the product when the out-of-stock tag is added.

Step 9: Scroll down to the page and click the "Save Workflow" button to save the workflow.

Workflow 2: Tagging Products as "Back-in-Stock"

This workflow will remove the "out-of-stock" tag and add the "back-in-stock" tag when the inventory increases from 0 to 1 or more.

Step 1: Click on the "Create Workflow" button at the top right corner of the app.

Step 2: Name the workflow to help you identify it later, and select Product as the workflow type.


Step 3: Enable workflow to trigger upon product creation and updation to ensure accurate tagging.

Step 4: Search for "inventory quantity" in the workflow conditions search box and select condition "Product->Variants->Inventory Quantity".


Step 5: Change the multi-operator to "All of" instead of "Any of".

Step 6: Configure the condition operator to greater than 0.

Step 7: Search for "tag" in the workflow conditions search box and select condition "Product->Tags (List)".

Step 8: Configure the condition operator to "is" and input "out-of-stock" to the input box.

Step 8: Configure the fixed tag "back-in-stock" to be added to the product if the product is back in stock.


Also, you can use Tag expiry: tag removal after X days to remove this "back-in-stock" tag after X days.


Step 9: Configure the workflow to remove the tag "out-of-stock" which we use in the first workflow to tag products that are out of stock. This will ensure that the out-of-stock tag is removed from the product when the back-in-stock tag is added.

Step 10: Scroll down to the page and click the "Save Workflow" button to save the workflow.

Next Steps

Once workflows are configured and active, you can backdate the first workflow to tag products that are currently out of stock and once the stocks are back the second workflow will remove the out-of-stock tag and add the back-in-stock tag.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us