Use the {{ PrimebVariantInventory }} dynamic variable to display badges with inventory count of the selected/displayed variant.
Example:
Only 5 left!
Whenever the customers change the variant selection, this badge will be auto-updated with the inventory count of the newly selected variant.
Note:
- The {{ PrimebVariantInventory }} dynamic variable is available for Gold Plan accounts only.
- Badges containing the {{ PrimebVariantInventory }} 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.
Important:
- Before adding the {{ PrimebVariantInventory }} dynamic variable to any badge or highlight, please turn the master switch OFF and then back ON. This is a required step in order to install the required code for displaying badges/highlights with information on the variant level.