Back to Developer changelog

Swatches and images for product filters

API

Effective March 14, 2024

As of version 2024-04 of the Storefront API, you can use new attributes of the Filter and FilterValue objects to create visual filters for your custom storefront.

We are adding FilterValue.swatch intended for color and pattern swatches and FilterValue.image for more detailed imagery. Use the new Filter.presentation attribute to know the intended display of each filter.

Merchants must use Shopify's Search & Discovery app to set visual filters for their store.