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
    1. Online Store › Themes › Edit theme (on a copy of your theme if you want to test first).
    2. Add section or Add block › Custom Liquid, paste the code, then Save.

    Step-by-step guide (opens in a new tab)

  • Your settings for the feature (for example your free shipping amount or countdown end date)

Make my low stock message

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.

More guides