Guide

How to show a low stock “Only 3 left” badge on Shopify

A low stock badge only works if it's true. Here's how to show one from your real inventory count, on product and collection pages.

Updated

Before you start: track inventory in Shopify

A low stock badge needs a real number to count down from. In your Shopify admin, open the product, and in each variant's Inventory section tick Track quantity and enter the stock you have. Products that don't track quantity can't show a low stock badge, because Shopify has no count for them.

Step by step with Clearlabel

  1. Install Clearlabel, click “Turn on” and Save in the theme editor.
  2. Open the Low stock label (it's created for you, switched off) or add it from the gallery. Its text is “Only {{stock}} left”, and {{stock}} becomes the real number.
  3. Set the threshold, for example “stock is 5 or fewer”. Products above it won't show the badge.
  4. Choose where it sits on the image and its colours, check the live preview on your products, and save.

The count adds up the stock of every tracked variant that's in stock, and comes from the inventory Shopify writes into your page, so it's current each time the page loads.

Keep it honest

  • Show the real count. Fake scarcity that never changes gets noticed, and consumer law in the EU and UK bans false claims that stock or time is limited.
  • Pick a threshold that means something for your store: “Only 3 left” is useful on a handmade item, not on a product you restock daily.
  • Pair it with a Sold out label so the badge changes, rather than disappears, when the last one sells.

Common problems

  • The badge never shows: Track quantity is off, or stock is above your threshold.
  • It disappears at zero: that's on purpose. Sold-out products never count as low stock; show your Sold out label instead.
  • The number looks wrong: the count is for the whole product (all in-stock variants), not the size a shopper picked.

FAQ

Questions, answered

Can I show “Only X left” without an app?

Some themes have a stock counter block for the product page (often called Inventory status). It usually shows only on the product page, not on collection pages; a label app shows it on product cards too.

Is the low stock label free in Clearlabel?

Yes. Low stock, Sale %, New, Sold out and every other everyday rule are on the free plan, with unlimited labels and products.

Does it update when I restock?

Yes. The badge reads the inventory Shopify puts in your page, so once stock goes back above your threshold it stops showing.

More from Clearlabel

Honest stock labels, free

“Only 3 left”, Sold out and Sale % from your real data, on every product page and collection.