Skip to content
shopdepot.dev

Reference

section

The section being rendered.

View as Markdown

Generated from the platform code - always matches what the theme engine allows.

The section being rendered. Available inside every section file.

Available on: every section file.

Properties

Property Type Description
section.id string The section key from the JSON template.
section.type string The section type (the file name).
section.settings hash Values of the section settings, resolved - a product setting gives a product object, not an id.
section.blocks list of block The blocks of the section.
section.index number Position of the section on the page, counted from 0.
section.attributes html Attributes the theme editor needs to select the section in the preview. Print them on the root element.