Attributes (EAV)
Define custom product fields, options, and attribute sets.
Attributes are how each store gives products their own shape — specs, facets, and variant axes — without database migrations. This is the EAV layer.
Attributes
An attribute has a code (e.g. color), a type (text, number, select, boolean,
…), and flags for whether it's filterable, used in variants, etc. Create them
with createAttribute (MCP create_attribute).
Options
Select/multiselect attributes have options (e.g. color → Red, Blue). Each
option has an integer option_id. Configurable product variants are keyed by
these option_ids — fetch them with list_attributes (MCP) or the attribute
query.
Attribute sets
An attribute set is a named group of attributes that defines a product
category's shape (e.g. "Apparel" set = size + color + material). Assign a product
to a set, then assign attributes to that set (assign_attribute_to_set).
Note
Attributes can be global (shared) or scoped to your organization. The defaults ship with sensible global sets; add org-specific attributes as needed.
Localizing labels
Attribute labels and option values are translatable as global resources — translate "Color" → "Màu" once and it applies everywhere. See Multi-language.
