Skip to main content
This guide walks through adding stock status indicators to your product cards on collection pages. This uses product-level metafields (aggregated across all variants) since collection pages show products, not individual variants.

Basic stock status badge

Add this to your product card snippet (typically snippets/card-product.liquid or similar):
This only shows a badge for low stock and out of stock - in-stock products don’t need a badge since that’s the normal state.

Badge with social proof

Combine stock status with sales data to create urgency:

Overlay badge on product image

Position the badge as an overlay on the product card image:

Variant count warning

Show how many variants are running low:

Tips

  • Product-level for collection pages - use product.metafields for aggregated data across all variants
  • Variant-level for PDP - use product.selected_or_first_available_variant.metafields for specific variant data
  • Only show what matters - customers don’t need to see “In Stock” badges. Save badge real estate for actionable states: low stock, out of stock, and selling fast
  • Combine data points - pairing “Low Stock” with “X sold recently” creates more urgency than either alone