Skip to main content
Layers creates three types of metaobjects in your Shopify store to represent key configuration entities. These metaobjects let Shopify reference Layers configurations directly, so you can, for example, assign sort orders to collections from the Shopify admin.

Sort order metaobject

The Sort Order metaobject represents sort orders configured in Layers. Each sort order you create in the Layers dashboard is automatically synced to Shopify as a metaobject. Type: app--278936322049--sort_order Definition Name: Layers Sort Order Description: Sort orders managed by Layers for product sorting

Field definitions

Example metaobject

Common sort order examples

Lifecycle

Sort order metaobjects are only synced to Shopify when the Enable as Storefront Sort option is enabled for the sort order. This option is enabled by default. When you create a new sort order with Enable as Storefront Sort enabled, a metaobject is created in Shopify. When you update the sort order’s name or code, the metaobject is updated. When you disable Enable as Storefront Sort or delete the sort order, the metaobject is removed from Shopify.

Facet metaobject

The Facet metaobject represents filterable attributes (facets) configured in Layers. When you mark an attribute as filterable and enable the Enable as Storefront Facet option in the Layers dashboard, it is synced to Shopify as a facet metaobject. Type: app--278936322049--facet Definition Name: Layers Facet Description: Facets (filterable attributes) managed by Layers

Field definitions

Example metaobject

Common facet examples

Lifecycle

Facet metaobjects are created when you mark an attribute as filterable and enable the Enable as Storefront Facet toggle in Layers. They are updated when you rename the attribute or change its display name, and deleted when you disable the Enable as Storefront Facet toggle or remove the attribute from your configuration.
Marking an attribute as filterable is not enough to create a facet metaobject. You must also enable the Enable as Storefront Facet option in the attribute’s Display settings. This lets you keep filterable attributes that are only used through the Layers API without syncing them to Shopify. Learn more in Attribute options.

Block metaobject

The Block metaobject represents recommendation blocks configured in Layers. When you create a block on a managed installation, it is automatically synced to Shopify as a metaobject with publishable status capability. Type: app--278936322049--block Definition Name: Layers Recommendation Block Description: Recommendation blocks managed by Layers

Field definitions

Example metaobject

Handle format

The metaobject’s system handle is generated as layers-<lowercase block ID> (for example, layers-01j8abcd1234xyz). The raw block ID is not stored in any field; the handle is the only way to recover it. Theme code passing a block to the Blocks API (which looks blocks up by their raw ID) must transform the handle first:
Passing the raw system.handle as blockId silently returns no products, since the prefixed handle never matches a block ID. See Accessing blocks for the full pattern.

Common block examples

Lifecycle

Block metaobjects are only synced for managed installations. When you create a block on a managed store, the corresponding metaobject is created in Shopify. When you update the block’s title, anchor type, or status, the metaobject is updated. When you delete the block, the metaobject is removed from Shopify. The block’s status (active or draft) is mapped to Shopify’s publishable status capability:
  • Active blocks → ACTIVE status in Shopify
  • Draft blocks → DRAFT status in Shopify