Skip to main content
Layers can create product sequences automatically from Shopify metafields. You configure which metafields trigger automatic sequence creation in the dashboard at Settings > Sequences.

Configuration options

Each sequence metafield configuration requires:
  • Namespace: The metafield namespace (e.g., layers, custom)
  • Key: The metafield key (e.g., global_sequence, related_products)
  • Type: Must be list.product_reference in Shopify
  • Includes current product: Whether the metafield value already contains the current product

Default configuration

By default, Layers recognizes the layers.global_sequence metafield:
When the layers.global_sequence metafield is present on products, Layers creates a global sequence named “Auto: layers.global_sequence” during bulk data synchronization. The metafield value should contain an array of product references that should be grouped together in the sequence. During automatic sequence creation and updates, Layers resolves global sequence conflicts automatically. If a product already belongs to another global sequence, it is removed from the old group before being placed in the new one. If removing products causes an old group to contain one or fewer products, that group is deleted.

Custom configurations

You can add more sequence metafield configurations for different use cases. For example, a “related products” metafield:
When “includes current product” is disabled, Layers prepends the current product to the metafield value when creating the sequence. This is useful when the metafield contains only related products, not the product itself. Each configured metafield creates sequences named as Auto: {namespace}.{key} (e.g., “Auto: custom.related_products”).
Automatic sequence creation via metafields only processes during bulk operations, not during incremental product updates.

See also