Theme guide
Add an “Only 3 left in stock” message to Shopify
What you’ll need
The theme editor (to add a Custom Liquid block; no code editing)
How to get this: The theme editor
- Online Store › Themes › Edit theme (on a copy of your theme if you want to test first).
- Add section or Add block › Custom Liquid, paste the code, then Save.
Your settings for the feature (for example your free shipping amount or countdown end date)
When it shows
- Only for variants Shopify tracks and that stop selling at zero, because those are the only real counts.
- Hidden for sold out variants (your theme already says Sold out).
- Optionally an “In stock” line for everything else.
Dawn’s built-in inventory block
Dawn and Horizon can show an inventory status block too. This one adds your own wording and threshold and works the same on both themes.