Snackery LabsSearch articles...

Conditions

Filter by inventory

Target variants based on stock levels — low stock, out of stock, or specific quantities.

The Inventory condition matches variants by their available stock quantity. The most common use case is automated clearance for slow-moving stock.

How it works

Click Add condition → Inventory and pick an operator. Enter the stock threshold.

Operators

Operator What it matches
= Variants with exactly N units in stock
> Variants with more than N units
< Variants with fewer than N units
Variants with N or more units
Variants with N or fewer units
between Variants with stock in the range (inclusive)

Examples

Discount low-stock items to clear inventory

Inventory ≤ 5

Run a stocked-up promotion (only items with healthy stock)

Inventory ≥ 50

Targeted clearance window (3-10 units)

Inventory between 3 and 10

Workflow tip: automated clearance

Pair an inventory threshold with a long-running automatic discount to handle clearance without manual intervention:

Inventory ≤ 5 AND Tag is not "no-discount"

As variants drop below 5 units, they automatically pick up the discount. As they sell out (inventory reaches 0), they stop being matched.

Inventory tracking caveats

  • The condition only works for variants with inventory tracking enabled in Shopify.
  • Variants where tracking is off (always available) won't match inventory conditions.
  • If you sell at multiple locations, the condition uses the total available across all locations.

Notes

  • Inventory is read live from Shopify; the live preview reflects current stock at the moment you browse.
  • Pre-orders and back-orders count as zero or negative inventory depending on how Shopify is configured.
Last updated May 3, 2026👁 4 views