Flair Dynamic Banner Text

1 min read
updated Mar 28 2023

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