Skip to main content

VariationAttributeDefinition

Overview

Variation attribute definitions define the variation attributes for a ContainerProduct and how these attributes are presented on the storefront.

Attributes

id

type: string


Identifier for the attribute definition. This can be generated by a UUID generation library during the normalize phase

displayName

type: string


The user facing label for this attribute: "Color", "Size", etc.

dataType

type: literal = "string" | "number"


The data type for the selected value of this attribute

presentationType

type: literal = "button" | "swatch" | "dropdown" | "imageSwatch"

Controls the UI treatment for this attribute