Use Case: Inventory Automations →

Automatically Tag Products When Out of Stock in Shopify

Stop missed stockouts. Automatically add an out-of-stock tag when inventory hits zero.

The Problem

Stockouts happen quickly - but tags and workflows lag behind

  • Products hit zero inventory but don’t get labeled consistently.
  • Teams discover stockouts late, after customer complaints or refunds.
  • Tag-based collections and internal alerts become unreliable without consistent tagging.
  • Manual checks don’t scale across large catalogs and fast-moving variants.

Solution

How this automation tags products when inventory reaches zero

  • Monitor inventory for the products you choose to track.
  • Add an out-of-stock tag when inventory equals 0.
  • Keep tag-based collections and internal alerts accurate automatically.
  • Apply the same condition across filters like collection, vendor, or type.

OTHER INVENTORY SCENARIOS

Other inventory tagging scenarios this rule supports

While this rule focuses on tagging products when they are out of stock, the same automation engine can handle other related scenarios using the same condition logic.

  • Add a low-stock tag when inventory drops below a threshold.
  • Remove the out-of-stock tag when inventory returns above zero.
  • Replace “in stock” with “low stock” after crossing a threshold.
  • Add tags only when inventory is zero at a specific location.
  • Add tags when total stock across locations is below X units.
  • Tag backordered items when inventory stays at zero for N days.
  • Tag products when inventory tracking is disabled accidentally.
  • Tag products with “needs reorder” when stock reaches zero.

All of these scenarios use the same rule conditions. Only the threshold, comparison, or filter changes - the automation itself remains the same.

STEPS

How to tag products when out of stock in Shopify

1
Select products you want to monitor

Choose products using filters like collection, vendor, or product type.

2
Set the out-of-stock condition

Define the inventory condition as equals 0 (or below 1) for tagging.

3
Choose the out-of-stock tag

Select the tag to add (for example: out-of-stock, oos, or stockout).

4
Enable rule and keep it running

Turn the rule on so it tags products automatically when inventory hits zero.

USE CASES

Real-world uses of out-of-stock tagging

Use this rule anywhere stockouts trigger internal workflows or storefront merchandising.

storefront

Merchandising

Auto-fill “Out of stock” collections so merchandising teams can swap products quickly.

notifications_active

Internal Alerts

Trigger Slack, email, or dashboard alerts only when inventory truly reaches zero.

inventory_2

Operations

Keep purchasing and replenishment workflows clean by tagging true stockouts consistently.

Manual checks vs Automation Rules

Manual edits & spreadsheet workflows

  • Requires daily inventory checks to catch stockouts.
  • Tags get applied late, after customers already see issues.
  • Results vary by team member and process quality.
  • Hard to audit when and why tags were applied.

Automation Rules (Bulk Editor)

  • One setup, then it runs continuously in the background.
  • Tags products the moment inventory reaches zero.
  • Applies consistent logic across filters and scope.
  • Creates repeatable, trackable inventory tagging over time.

Frequently asked questions

Common questions about tagging products when they are out of stock.

  • Most stores use equals 0 for clarity. If you deal with backorders, reserved stock, or inventory sync delays, less than 1 can be safer. The best choice depends on how your inventory system reports availability.

  • Yes. Use filters like collection, vendor, product type, or existing tags to narrow scope. This helps when some categories have different stock policies or fulfillment rules.

  • Keep it simple and consistent: out-of-stock, oos, or stockout. Choose one standard and reuse it across collections, alerts, and reporting so the logic stays predictable.

  • If you use automated collections based on tags, adding an out-of-stock tag can automatically add products to those collections. This is useful for merchandising and operational dashboards.

  • It can be configured to match the inventory value you choose to evaluate, including location-aware logic if your workflow requires it. Align the condition with how your store fulfills orders.

  • Yes. Use the rule preview to confirm which products match inventory equals 0 before enabling it. This helps validate filters and prevents tagging the wrong scope.

  • Use a complementary rule to remove the out-of-stock tag when inventory returns above zero. Pairing add and remove rules keeps tags accurate across restock cycles.

  • Yes. Exclude them using filters or an “exclude-from-automation” tag. This prevents intentional stock policies from being overridden by a generic stockout rule.

  • Tags are applied at the product level in Shopify, even when inventory is tracked per variant. The condition can evaluate variant inventory, then tag the parent product to keep storefront filtering consistent.

Explore Shopify Bulk Editor App

See how bulk editing and automation rules work together.