Stock level indicator
The Stock level indicator displays the relative availability of your product with a visual bar that alerts customers when there are limited quantities.
The indicator bar visually represents the remaining percentage of your initial stock quantity, turns red when stock is low, and displays three different messages.
Set up stock level indicator
Before adding a Stock level indicator block, you need to enable the Track quantity option for your product and product variants. See the Shopify guide about how to set up inventory tracking ↗.
Under Product overview, click (+) Add block and select Stock level indicator. Use the drag-and-drop handles ⋮⋮
to re-order blocks.
Enter an inventory base quantity for your product
Enter a low level threshold for when the low-stock alert should appear
Use dynamic sources for multiple products
If you need to set a different Inventory base quantity and Low inventory threshold for multiple products, you can use Shopify's metafields and dynamic sources.
Follow the steps below to create metafields for your products, add inventory numbers to those metafields, then use Dynamic sources to connect metafields to the stock level settings in your theme editor.
For a general introduction, see our Dynamic sources and metafields tutorial.
1. Create number metafield
Shopify's Metafields lets you store additional information about your products. You can create custom fields to hold different types of information in your Shopify admin, and enter unique content for each of your products.
The steps below show you how to add two Number metafields for storing an inventory base quantity and Low stock threshold.
2. Add quantity to number metafields
Once you've created number Metafields for your products, you can now add quantities those fields by going to your products in the Shopify admin.
3. Insert metafields as dynamic sources
Now that the Metafields of your products have content, you can go to the theme editor to insert a Dynamic source to the Stock level indicator settings in the Products template.
Related links
Last updated
Was this helpful?