BSS Product Labels & Badges
  • About app
  • How to create a Label?
  • How to create a Badge?
  • How to create a Label Group?
  • Integration
    • LAI Product Review Integration Guide
  • FAQs
    • How to Provide Your Store's Collaborator Code
    • How to Approve Our Collaborator Request
    • How to create a text label/badge with custom style?
    • How to redirect customers after clicking on label/badge
    • What to do when some of the labels are appearing in places they should not?
    • Why are the changes of labels not applied on my products?
    • How to convert the language in the label or badge on your on your multilingual site?
    • How to add 2 labels at the same time on certain products?
    • How to show labels beautifully on the desktop and mobile?
    • How to change colors of the label?
    • How to exclude the label from unexpected page(s) or block(s)?
    • How to remove leftover code of the Product Labels Pro app?
    • How to show badges out of product images?
    • How to show label/badge when product quantity = 0?
    • How to add the Sold Out label automatically?
    • Why doesn’t the label/badge appear when the product is out of stock?
    • Why can't I see the badge on the product image?
    • Why doesn't the app work?
    • Why are the labels/badges not visible constantly on the page(s)?
    • Why is the label/badge duplicated?
    • How to remove label automatically?
    • How to apply Labels/Badges based on Product/Customer tags?
    • How to show text hover effect on label/badge?
    • How to create labels for product variants?
    • Why after changing theme, labels/badges aren't displayed anymore.
    • Can I add multiple badges on a product?
    • What is Inventory Badge?
    • Can I exclude specific customers from seeing my badge?
    • Can I choose who can see my badge?
    • Can I set the badge below the Buy it now button?
    • How to change the effect the labels/badges show up in the online store?
    • How can I customize the position of badges?
    • How to Display Labels/Badges Only on Mobile Devices
    • How to display your inventory quantity on text labels?
    • Countdown Timer for Label/Badge
    • How to Use Product Metafields to Customize Label/Badge Display?
    • How to Create Product Metafields in Shopify: A Step-by-Step Guide
    • How to Use Variant Metafields to Customize Label/Badge Display
    • How to Create a Label or Badge that Shows Product Metafield Content Automatically
    • Using a List of Values Metafield to Display Labels/Badges
    • Display a Badge Next to the Product Price
  • General
    • How to enable app embed block?
    • Can I have a trial for BSS Product Labels & Badges app?
    • How to translate the app interface into other languages?
Powered by GitBook
On this page
  • Step 1: From the Labels section, create a new label
  • Step 2: Fill in the required information in the General, Configuration and Conditions tabs
  • Step 3: In the Configuration tab, choose the label type as Text Label and customize the look of the label
  • Step 4: From the Content option, add the {inventory_quantity} variable
  • Step 5: Save and view
  1. FAQs

How to display your inventory quantity on text labels?

PreviousHow to Display Labels/Badges Only on Mobile DevicesNextCountdown Timer for Label/Badge

Last updated 9 months ago

To keep buyers informed about the inventory status of your products, you can add the inventory quantity to text labels. Follow the instructions below:

Step 1: From the Labels section, create a new label

Step 2: Fill in the required information in the General, Configuration and Conditions tabs

You can refer to our guide to customize a text label using the instruction below:

Step 3: In the Configuration tab, choose the label type as Text Label and customize the look of the label

Step 4: From the Content option, add the {inventory_quantity} variable

You can expand the list by clicking on the Show more text and select a product to preview

Depending on the actual product quantity, this variable can return one of three results:

  • For products with quantity > 0, the {inventory_quantity} variable returns the static text configured in the Content box and the quantity in numeric form

  • For products with quantity = 0, the {inventory_quantity} variable returns the Sold out text (users can customize the text by changing it in the Sold Out Text box)

  • For products that have either Untrack quantity or Track quantity & continue selling when out of stock settings enabled, the {inventory_quantity} variable returns the Unlimited Stock text (users can customize the text by changing it in the Unlimited Stock Text box)

Step 5: Save and view

Once you have finished configuring your label, simply click on the Save button located in the top bar to complete the creation process.

The {inventory_quantity} variable will now appear on your text labels in your storefront as follows:

  • When the product quantity is greater than 0

  • When the product quantity equals 0

  • When the product has either Untrack quantity or Track quantity & continue selling when out of stock settings enabled

If you have a problem when setting up this feature, please feel free to reach us at or Live Chat if you need any assistance.

How to create a text label/badge with custom style?
support-sbc-ta@bsscommerce.com