Burst Commerce Logo

Flair Dynamic Badge Text

Updated: July 14, 2020

Overview

You can include dynamic product information as part of your Flair product badge text.

For example, you can create urgency by showing the actual remaining inventory available for a product by entering this in your Flair badge text:

Hurry only {{ inventory_total }} left!

This will dynamically insert the total inventory available for your product like so:

Hurry only 3 left!

Inventory variables

The inventory_total variable is used to insert the total inventory across all variants.

Example

Hurry only {{ inventory_total }} left!

Becomes:

Hurry only 3 left!

Price variables

The following price variables are supported:

  • price_min - the lowest price of the product
  • price_max - the highest price of the product

Example

Starting at {{ price_min }}

Becomes:

Starting at $19.99

Sale amount variables

The following sale amount variables are supported:

  • sale_amount_min - the minimum savings dollar amount for this product (based on the compare at price)
  • sale_amount_max - the maximum savings dollar amount for this product (based on the compare at price)

Example

SAVE {{ sale_amount_min }}

Becomes:

SAVE $5.26

Sale percent variables

The following sale percent variables are supported:

  • sale_percent_min - the minimum savings percentage for this product (based on the compare at price)
  • sale_percent_max - the maximum savings percentage for this product (based on the compare at price)

Percents are rounded to the nearest whole number, so 25.4 becomes 25.

Example

SAVE {{ sale_percent_min }}%

Becomes:

SAVE 20%

Have a suggestion for additional types of text?

If you’d like to see support for other dynamic variables that aren’t listed here, feel free to contact us with more details.