A Shopify low stock indicator is a statement of fact: it tells a shopper how many units of the size or color in front of them are left. When the number comes from your real inventory, that is useful. When it is typed by hand or keeps showing while you are happy to oversell, it is a false claim. On Shopify you can show "only X left" three ways: your theme's inventory block (Shopify's Dawn theme has one), an app badge that reads tracked inventory, or a static image or line of text, and only the first two read real stock. This guide sets up each one, shows the traps, and sums up what consumer regulators in four markets have written about low-stock messages.
Key takeaways
- Only show a number that comes from tracked inventory in Shopify.
- Shopify's Dawn theme code includes an inventory block with a low-stock threshold; other themes differ.
- Products you keep selling at zero should not say "only X left": the count is not a limit for the shopper.
- Regulators in the US, the EU, the UK and Canada all name false low-stock messages as misleading.
What a low stock badge tells shoppers
A shopper reads "Only 2 left" as "if I wait, this size may be gone." That is true when two units are left and you will not sell a third you do not have, and false when the 2 is a picture, a number typed last month, or a count that does not stop orders.
So before you add any low stock message on Shopify, ask where the number comes from and whether it means what shoppers think it means. For how a low stock badge fits next to sale, trust and countdown badges, see our guide to Shopify product badges.
Stock alerts for you vs a message for shoppers
Many people who search for a low stock indicator want something else: a warning for the merchant, so they can reorder before a product runs out. Shopify Flow has a trigger called "Product variant inventory quantity changed" that "starts a workflow when inventory is changed for a specific product variant", and a template named "Get notified by email when product variant inventory is low" (Shopify Help Center: Flow inventory trigger). This article covers what shoppers see.
How Shopify counts stock
Every honest Shopify low stock indicator starts from Shopify's inventory tracking. The Help Center says: "An item is out of stock when inventory is tracked and the inventory level is at zero or below" (Shopify Help Center: selling when out of stock). Three details on that page matter here:
- Tracking is per product or variant. If "Inventory tracked" is off, Shopify has no count to show, and neither a theme nor an app can show a real one.
- Continue selling is a choice. The same page says "You can select the Continue selling when out of stock option only when you turn on the Inventory tracked setting." With it on, shoppers can buy past zero and you oversell on purpose.
- Locations count. If an item has "an inventory level of zero or below" at a location that fulfills online orders, and its only stock is at "a location with available inventory that doesn't fulfill online orders", Shopify says it "is still displayed as out of stock to customers on your online store".
Before you show any count, check that tracking is on and the admin numbers match the shelf.
Three ways to add a Shopify low stock indicator
| Method | Text the shopper sees | Where it shows | Checks Continue selling? | Main trap |
|---|---|---|---|---|
| Dawn's inventory block | "Low stock: 3 left" (count can be hidden) | Product page | Only at zero or below | Dawn's code; other themes have their own blocks or none |
| App Low stock badge | Your text, default "Only {qty} left" | Product page, in the Product Badges block | No | Shows for variants you oversell |
| Static image or typed text | Whatever was typed or drawn | Anywhere you place it | No | Wrong the moment stock changes |

Dawn's inventory block
Shopify's Dawn theme code (version 16.2.0, read 18 November 2026) includes an "Inventory status" block for the product page. Its "Low inventory threshold" setting runs from 0 to 100 and starts at 10, and an "Inventory count" checkbox decides whether the number is shown (Dawn's main-product section). The block shows nothing unless the variant's inventory is tracked by Shopify.
When the count is above zero and at or below the threshold, Dawn's English text reads "Low stock: 3 left"; above the threshold it reads, for example, "12 in stock". At zero or below it reads "Out of stock", or "In stock" when the variant continues selling. For a positive count, it shows the low-stock line whether or not Continue selling is on.
An app badge that reads tracked inventory
Nileva Product Labels & Badges has a Low stock badge type on the Free plan. It shows only when three things are true for the variant it reads: inventory is tracked, the quantity is above 0, and the quantity is at or below your threshold. The text replaces {qty} with that variant's real inventory quantity. The setup:
- In the app, open Badges and click Create badge.
- Set Badge type to Low stock. The text changes to "Only {qty} left" with a fire icon. Give the badge a name you will recognize, and keep
{qty}in the text: a number typed by hand would never change. - In the Design tab, under Low stock rule, set "Show when stock is at or below". It starts at 5 and takes a whole number of 1 or more. The help text under it says "Only shows when the product's inventory is tracked in Shopify."
- In the Products tab, leave Show on at All products. Choosing specific products, collections, tags or any other condition is part of Pro.
- Check the Active switch above the live preview. A new badge starts with Active on, so it goes live as soon as you save; turn it off first to save a draft. The preview draws the chip on a sample product image with a sample count of 3, as for every type.
- Open the theme editor (Online Store → Themes → Edit theme), go to the product template, click Add block in the product information section, pick Product Badges under Apps, and save (Shopify Help Center).
The Low stock badge shows only in that block: never on collection or search cards and never over the product image. The block reads its badge settings by itself, so a Low stock badge never needs the Nileva Product Badges app embed (Product Badges & Labels), which the Setup guide has you switch on under Online Store → Themes → Edit theme → App embeds (the icon in the sidebar) to draw the other types over product images. With the embed on, Trust, Sale, Free shipping and Countdown badges show both over the main image and in the block, so shoppers see them twice. The app embed keeps badges off the cart page on every theme and skips cart drawers built like Dawn's; drawers on other themes are untested, so open yours to check. Badges never show at checkout.

A static "Only 3 left" image or text
The third way is a picture or text that says "Only 3 left". The app's own image library includes a sticker with exactly those words, and a Trust badge will show any text you type, but neither reads your stock. They show on products with 300 units as readily as on products with 3. Use a theme inventory block or a Low stock badge, which read tracked inventory, or show nothing.
The continue-selling trap
Example: a jacket in size XL has 3 units in tracked stock and Continue selling turned on, because more are on order. With a threshold of 5, the badge shows "Only 3 left", yet a shopper who wants four can still order four.
The number was true about your shelf, but the message it sends, that the size is about to run out for this shopper, is not. Dawn's block behaves the same way while the count is above zero.
The CMA blog on urgency and price reduction claims (2023) describes this case: saying "Only 5 left" "when this has no bearing on any order the consumer may place because new stock is on its way" may also mislead (CMA blog on urgency and price reduction claims (2023)).
Three honest fixes:
- Turn Continue selling off for that variant if you do not really want to oversell it.
- Exclude the product. The Products tab has an "Exclude products" checkbox, with the help text "Hide this badge on specific products even when the rules above match."; tick it and pick the product. It works per product, not per variant, so it hides the badge for every size of that jacket.
- Turn the badge off if most of your catalog sells past zero.
The app does not stop the badge for products that continue selling at zero. Check your Continue selling settings before you make a Low stock badge Active.
Variants: the count belongs to one size
A Shopify low stock badge counts one variant, not the whole product. The app's badge reads the selected variant, or the first available one, when the page is rendered.
| Variant | Tracked | Stock | Continue selling | Badge shows |
|---|---|---|---|---|
| S | Yes | 2 | Off | Only 2 left |
| M | Yes | 7 | Off | No badge (above 5) |
| L | Yes | 0 | Off | No badge; Dawn's block reads "Out of stock" |
| XL | Yes | 3 | On | Only 3 left (misleading) |
| XXL | No | — | — | No badge (not tracked) |

Here a shopper who opens the page with no size chosen sees "Only 2 left", the count of size S, even if they came for M. Whether the badge changes when they pick another size without reloading depends on your theme. Test it: open a product, switch between a low and a well-stocked size, and see whether the number follows. If it does not, think twice before showing it on products with many sizes.
When stock hits zero
At zero, the app's badge hides: its rule needs a quantity above 0. What shows then is up to your theme. Shopify's Help Center says "Sale and Sold out badges are automatically added to your product images" when the price is reduced or "when the inventory count reaches 0", and that you adjust their position, shape and color in your theme settings (Shopify Help Center: theme settings). The app has no Sold out badge type of its own.
If a variant continues selling, Dawn's block switches to "In stock" at zero, which is the right message for a product you will keep selling.
What the rules say about scarcity claims
Consumer regulators do not ban low stock messages. They name false ones. This is a summary, not legal advice: check with a lawyer for your market.
- United States. FTC, Bringing Dark Patterns to Light (2022), a staff report, lists "False Low Stock Message" as "Creating pressure to buy immediately by saying inventory is low when it isn't", with the example "Only 1 left in stock – order soon" (FTC, Bringing Dark Patterns to Light (2022)).
- European Union. The European Commission guidance on the Unfair Commercial Practices Directive (2021) explains the banned practice of "Creating urgency by falsely stating that a product will only be available for a very limited time" and adds: "For example, this includes fake timers and limited stock claims on websites" (European Commission guidance on the Unfair Commercial Practices Directive (2021)).
- United Kingdom. The unfair commercial practices rules of the Digital Markets, Competition and Consumers Act 2024 (DMCC Act) apply to practices from 6 April 2025. The CMA guidance on unfair commercial practices (CMA207) gives the example of a pop-up "Be quick! We've sold 10 in the last 5 mins." that is misleading where stock levels are high and there is no need for consumers to hurry (CMA guidance on unfair commercial practices (CMA207)). The CMA blog on urgency and price reduction claims (2023) adds: "Claims that are untrue because the business in fact has plenty of stock are misleading" (CMA blog on urgency and price reduction claims (2023)).
- Canada. The Competition Bureau's November 2024 notice names countdown timers that run out or reset while the offer is still available, and stock claims such as "Only 2 left in stock – order soon" when availability does not change over time (Competition Bureau Canada on fake urgency (2024)).
The common thread is the number: a tracked count, on a variant you will not oversell, describes your stock. Deadlines work the same way: see our article on a Shopify countdown timer with a real deadline.
Frequently asked questions
How do I show "only X left" on Shopify?
Use your theme's inventory block if it has one (Shopify's Dawn theme code includes one with a threshold), or an app badge that reads tracked inventory. In the app, create a Low stock badge, set the threshold and add the Product Badges block to the product page.
Why doesn't my low stock badge show?
The variant's inventory must be tracked in Shopify, and its count must be above zero and at or below your threshold. Also check that the badge is Active and that the Product Badges block is on your product template.
Can I show low stock on collection pages?
Not with the app's Low stock badge: it shows only on the product page, in the Product Badges block. Dawn's inventory block is a product page block too.
Is it legal to say "only 2 left"?
Regulators in the US, the EU, the UK and Canada name low-stock messages as misleading when stock is not really low. A real tracked count, on a variant you do not oversell, is a statement of fact. This is not legal advice.
What if I allow overselling?
Then "only X left" is not true for the shopper, because they can keep ordering. Turn Continue selling off for that variant, or pick the product under the badge's "Exclude products" option.
Try it
Show low stock only when your tracked inventory says so.