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_referencein Shopify - Includes current product: Whether the metafield value already contains the current product
Default configuration
By default, Layers recognizes thelayers.global_sequence metafield:
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:Auto: {namespace}.{key} (e.g., “Auto: custom.related_products”).
Automatic sequence creation via metafields only processes during bulk operations, not during incremental product updates.