Product badges with metafields

Add custom product badges to individual products easily using metafields

Feature introduced in Broadcast 3.2

Broadcast makes adding custom individual product badges or also known as stickers, very easy to implement and manage by using metafields.

When utilizing metafields, you simply create one metafield to activate the functionality. From there, you can add badge text to any of your products, and Broadcast will automatically generate a custom badge for that product on collection pages or any section using a product grid.

How to set up

If your shop is using Broadcast v3.2 or higher, you can easily use this feature. The following quick video shows you how to set up the custom metafield and how to use it with products:

Video walk-through

Reference

You can use the following reference information to help with the steps covered in the video.

Metafield definition

Create a product metafield with the namespace and key set to:

theme.badge

Set the content type to Single line text, with one value:

Example of how the badge metafield is supposed to be set up from the shopify metafield settings
The Namespace and key must be 'theme.badge'

Product setup

In the Metafields section of any product that you'd like to use the feature on. Add a value to the badge field.

This will become your custom badge when displayed in a collection or section that includes a product grid:

Example of where to fill in the value of the badge metafield after it's been created

Result

When viewing a collection page or section with a product grid-style list, the custom badge is added to the top left corner if the product exists in that listing:

Example of how the custom badges appear after the whole setup with metafields is done

Each product can have its own custom badge label.

Badge colors

Colors are managed in the Theme settings tab under 'Badges'.

Choose the background color and text color to set for all badges. Sale badges have their own values to help differentiate them from other badges:

Showing an example of the theme settings which control the colors of the badges
Theme settings -> Badges

Brand colors

The data-source option for badge colors allows you to choose colors you've already configured in your brand colors configuration:

Showing how to connect the badge colors with dynamic sources
Connect dynamic source -> Choose brand colors

Brand colors are configured and managed in the Shopify admin settings -> General -> Brand:

The image shows how the brand colors can be configured from the general settings
Brand color palettes in Shopify admin settings

Learn more about managing your brand settings:

Last updated