Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ProductVariation

Hierarchy

  • ProductVariation

Index

Properties

LogicalLevel

LogicalLevel: string

The LogicalLevel of a product defines the 'level' on which the product can be thought to sit in the hierarchy.

For example, the various different colors of a shirt can be thought to have LogicalLevel = 'color' and the actual SKU might have LogicalLevel = 'size' or 'sku'.

You are free to use any value, but it's recommended to keep this consistent between all products, or at least between products of the same kind, as it's a useful way to structure a frontend by for example filtering on the color level and only show sizes when navigating to the product detail.

Products

Products: Product[]

The actual variations of the product on the specified LogicalLevel.

Property

Property: string

The property on which the product hierarchy varies. For example 'size' or 'color'.