Option Types & Values

Options power the variant picker, the row of chips or color squares on a product page that jumps between versions of the same product: a fridge in graphite or white, a hood in 60 or 90 cm. Understanding one idea makes everything else fall into place:

Every variant is its own product. The graphite fridge and the white fridge are two separate documents with their own slugs, images, prices and content. Options do not create variants, they describe how existing sibling products differ so the site can link between them.

The pieces

Four things work together, all under Catalog:

PieceWhat it isExample
Option TypeAn axis products can differ onColor, Size, Capacity
Option ValueOne point on that axisGraphite, 60 cm, 344 l
Product GroupAn invisible binder holding variant siblings togetherTCE fridges
Options on the productThe product's exact position, one value per axisGraphite + 344 l

Option Types

An option type is the axis itself. It has a translated title, which the picker shows as the caption above the row, and a display mode that decides how its values render:

DisplayRenders asUse for
ChipA labeled rectangleSizes, capacities, anything textual
SwatchA color squareColors and finishes

That is the whole definition. Like attributes, each option type has a Values tab where its values live and where you create new ones.

Option Values

A value belongs to exactly one option type and carries a translated label. Values of swatch types also get a swatch color, a hex code like #1A1A1A that paints the square in the picker. The label is still required, it becomes the accessible name for screen readers.

Labels are translated once, centrally, exactly like attribute values. Every product picking Graphite inherits the same word in every locale.

Product Groups

A group is an internal binder, its title never appears on the site. It does two jobs:

  1. Holds the siblings together. Products pointing at the same group appear in each other's picker.
  2. Declares the axes. The group lists which option types its products must fill in, and their order here is the order of the rows on the product page.

A two-axis group like Color and Capacity means every product in it must pick exactly one color and exactly one capacity.

How the picker behaves

variant picker on a product page

For the product you are viewing, the site walks the group's axes in order and builds a row per axis. Three rules decide what you see:

Drafted or unpublished siblings drop out of the picker entirely, so unpublishing a variant can quietly disable values for the rest of the group.

Guardrails

The system protects itself from the common mistakes:

Setting up variants, start to finish

Say the TCE fridge now comes in two colors and two capacities.

  1. Option types first. Create Color (display: swatch) and Capacity (display: chip) under Catalog → Option Types, if they do not exist yet.
  2. Values on their tabs. Under Color create Graphite #4A4A4A and White #F5F5F5. Under Capacity create 344 l and 500 l.
  3. The group. Create a product group named TCE fridges and add Color and Capacity as its option types, in the order the rows should stack on the page.
  4. Bind the products. On each fridge's Details tab under Variants, pick the group, then exactly one value per axis: the first fridge is Graphite + 344 l, the next White + 344 l, and so on.
variants group on a product

Publish the siblings and the picker assembles itself. Adding a third color later is steps 2 and 4 only, the axis already exists.