Use the {{ SmartbVariantInventory }} dynamic variable to display badges with the 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.


Important:


  1. 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.

Note:

  1. The {{ SmartbVariantInventory }} dynamic variable is available for Gold Plan accounts only.
  2. 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.
  3. If the account is downgraded after adding highlights having variant-level inventory, then those highlights will stop showing inventory levels.