Flair Dynamic Banner Text

1 min read
updated Nov 14 2022

Overview

Flair banner content can show dynamic information such as countdown timers, customer and company names, and metafield values.

Company Name

Display the Shopify B2B company name for the currently logged in customer.

The following variable is supported:

  • company_name - the company name

Example

Welcome {{ company_name }}!

For a company named 'Initech' this displays as:

Welcome Initech!

Countdown

Add a countdown timer to your banner:

  • countdown - display a countdown timer based on the scheduled unpublish date of your banner.

Example

Hurry Before The Sale Ends {{ countdown }}

Check out the Flair countdown timer guide for more information on using countdown timers.

Customer First Name

Display the first name of the currently logged in customer.

The following variable is supported:

  • customer_first_name - the customer first name

Example

Welcome {{ customer_first_name }}!

For a customer with first name 'Milton' this displays as:

Welcome Milton!

Metafield

Display custom content based on shop and product metafield values.

The following variables are supported:

  • metafield.shop.namespace.key - display the value of the shop metafield stored at namespace.key
  • metafield.product.namespace.key - display the value of the product metafield stored at namespace.key

Example

To show the product metafield stored at namespace custom and key ships_by:

Ships {{ metafield.product.custom.ships_by }}

For a metafield value of '5-7 days' this displays as:

Ships in 5-7 days

Metafield values are displayed using the Shopify metafield_text liquid filter.

Have a suggestion?

If you'd like to see support for any dynamic variables that aren't listed here, let us know.