Why show how many are left
A real stock count helps a shopper decide. "Low stock: 3 left" tells someone who is on the fence that waiting may cost them the size they want, and it explains why an item sold out the next day.
Show the real number, though. A count that isn't true is a fake scarcity claim: the FTC's 2022 report on dark patterns lists false low-stock messages among the tricks it warns about, and shoppers who notice stop trusting the rest of your store.
Your options
| Option | What it does | The catch |
|---|---|---|
| Your theme's inventory block | Dawn's Inventory status block shows "Low stock: 3 left" at or below a threshold | One threshold and one message; above it, it says "In stock"; tracked inventory only |
| Theme code | A Liquid snippet in the product template shows the count | Needs code; Shopify's own tutorial covers vintage themes only, and a theme update can undo it |
| An app such as Stock Counter | A block with your own message and count, updated when the shopper picks a variant | Needs an app and an Online Store 2.0 theme; showing it only when stock is low is on Premium |
How to show the stock count with Dawn
- In your Shopify admin, go to Online Store > Themes and choose Customize.
- Open a product page, and add the Inventory status block to the product information section, or select it if it's already there.
- Set Low inventory threshold, from 0 to 100 (the default is 10), and keep Inventory count ticked to show the number.
- Save.
The block then shows, for the variant the shopper selected:
- Above the threshold: "In stock", or "25 in stock" with the count on.
- At or below it: "Low stock", or "Low stock: 3 left".
- At zero: "Out of stock", or "In stock" if the variant keeps selling when out of stock.
- Nothing for a variant whose inventory Shopify doesn't track.
That covers most stores. What it can't do is stay quiet above the threshold, or show a different message for 1 to 3 left than for 4 to 10. Its wording can only be changed for the whole store, under Edit default theme content. Other themes may have a similar block with other options, so check your theme's product page blocks first.
How to show a stock counter with Stock Counter
Stock Counter adds a Stock Counter block to your product page with a message you write, and changes the count when the shopper picks another variant.
- Install Stock Counter. On its Home, choose Enable now, then Add widget now, which opens your theme editor with the block on your product page. Save the theme. The block needs an Online Store 2.0 theme.
- Open the widget and write its message, or start from one of the suggested messages, such as "🔥 Selling Fast! INVENTORY_QUANTITY pieces left!". INVENTORY_QUANTITY is replaced with the count, and you can style the text and the number.
- Choose whether the count is the selected variant's or the whole product's, and turn on Replace INVENTORY_QUANTITY with 0 when negative if some products keep selling when they're out of stock.
- On Premium, add display rules: show the widget only when the quantity is within a range, such as 1 to 10, only for products with or without certain tags, only for products you pick, or only for products whose inventory Shopify doesn't track. The advanced design options add a progress bar, an animation and the alignment.
- Save, and look at a product page.
On the Free plan, the widget shows on every product page, whatever the stock. Write a message that's true at any count, such as "INVENTORY_QUANTITY in stock", and keep in mind that a product whose inventory Shopify doesn't track has no real count to show. With Premium's quantity range you can keep "Only INVENTORY_QUANTITY left!" for low stock and add more widgets for other ranges: shoppers see the first widget in your list whose rules match.
Tips for a counter that helps
- Count the variant for products with sizes or colors, so the number matches what the shopper picked. A total across all sizes says nothing about the one they want.
- Pick a range that's low for that product. A best seller you restock every week might only need a counter from 1 to 5.
- Let the theme handle sold out. With a range that starts at 1, the counter disappears at zero and your theme's sold-out button says the rest.
