How Variants Work
Variants are built from Variant Options — brand-level axis definitions (e.g., “Color”, “Size”). On the product, you select which options apply, then define each combination as an individual variant row.Setting Up Variant Options
Before adding variants to a product, create the variant option definitions:- Go to Settings → Products → Variant Options
- Create a new option (e.g.,
Colorwith values: Red, Blue, Green) - Repeat for each dimension (e.g.,
Sizewith values: S, M, L, XL)
Adding Variants to a Product
- Open the product and go to the Variants tab
- In Variant Options, check the options that apply to this product (e.g., Color and Size)
- In Product Variants, click Add Variant for each combination
- For each variant row, fill in:
- Code — Unique variant identifier
- Price — Variant-specific price
- One field per selected option (e.g., Color, Size)
Per-Variant Pricing
Each variant has its own Price field. If left blank, the product’s base price is used at checkout.Variant Option Values (option_values)
Each variant stores its option selections as option_values — a map of option slug to selected value:
variant.option_values.
Variant Attributes
Product Attributes withapplies_to = variant or applies_to = both can store values per variant. These appear in each variant row in the Variants tab and are managed independently.
To set up variant-scoped attributes:
- Go to Settings → Products → Product Attributes
- Create or edit an attribute and set Applies To to
VariantorBoth - Open any product → Variants tab — variant rows will include inputs for these attributes