Use the {{ SmartbVariantInventory }} dynamic variable to display badges with the inventory count of the selected/displayed variant.
Example: Only 5 left!
Step-by-Step Instructions
Step 1: Open Smart App
- From Shopify admin, click Apps.
- Open Smart App.

Step 2: Configure Variant Level Inventory
- Whenever customers change the variant selection, this badge will be auto-updated with the inventory count of the newly selected variant.
- Before adding the {{ SmartbVariantInventory }} dynamic variable to any badge or highlight, please turn the master switch OFF and then back ON. This is a required step to install the required code for displaying badges/highlights with information on the variant level.
- The {{ SmartbVariantInventory }} dynamic variable is available only to Gold Plan accounts.
- Badges containing the {{ SmartbVariantInventory }} dynamic variable will be displayed only on the product pages. These badges will not be displayed on the collection pages, home pages, search pages, etc.
- If the account is downgraded after adding highlights having variant-level inventory, then those highlights will stop showing inventory levels.
Step 3: Save and Publish
- Review the preview panel.
- Click Save & Publish.
Important Notes
If the account is downgraded after adding highlights with variant-level inventory, then those highlights will stop showing inventory levels.
Email [email protected] if you need free integration assistance.