Flair Dynamic Banner Text

1 min read
updated Sep 18 2024

Overview

Flair banner content can show dynamic information including customer name, company name, 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!

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.product.namespace.key - display the value of the product metafield stored at namespace.key
  • metafield.shop.namespace.key - display the value of the shop metafield stored at namespace.key

Heads up! The 'shop' metafield text is on its way out and won't be available in Flair Gen 3.

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

Have a suggestion?

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