Byte Digital Themes

Stock alert

In stock / low stock / sold out status pill with optional pulse.

Updated 2026-05-09

A small status pill that adapts to the variant's stock level.

Block settings

SettingNotes
ThresholdInventory level below which "Low stock" message kicks in (default 10)
Low stock textTemplate — {count} placeholder for actual quantity
In stock textStatic label (default "In stock")
Sold out textStatic label (default "Sold out")
Show "in stock" messageIf off, only Low stock and Sold out states render
Pulse animationAnimated dot for visual attention
Color (low / sold out)Single color for both states
Color (in stock)Separate green-ish color

Behavior

The block reads current_variant.inventory_quantity and inventory_management:

  • If inventory is tracked AND inventory_policy != continue:
    • quantity > threshold → In stock (if enabled)
    • 0 < quantity ≤ threshold → Low stock with count
    • quantity = 0 → Sold out
  • If inventory is not tracked:
    • Available → In stock (if enabled)
    • Unavailable → Sold out

The block updates live when the customer picks a different variant.

Tips

  • Threshold 5–10 works well for fashion. Set to 3 for limited drops to create urgency.
  • Pulse animation draws the eye — useful for low-stock states; keep off for in-stock to avoid overstimulation.
  • Hide "in stock" message for catalogs where 99% of products are stocked — it becomes noise.
Need a hand? Contact support.