item_group_id field. This field typically corresponds to the parent SKU, although you can use any other ID to group variants together.item_group_id must have populated every variant field (for example, size, color, gender, and pattern). For custom variants, you can use the additional_variant_attribute field.item_group_id has the same value across all sizes and colors, and that images and external links match the color of the item.
| ID | Name | Color | Price | item_group_id |
|---|---|---|---|---|
CoolShirt123 | Cool shirt (parent) | $9.99 | CoolShirt123 | |
CoolShirt123_red | Cool Shirt - Red | red | $9.99 | CoolShirt123 |
CoolShirt123_blue | Cool Shirt - Blue | blue | $9.99 | CoolShirt123 |
item_group_id fields match (so that the name does not change when variants are selected, but images do). Both of the items below would roll into one “virtual” parent item.| ID | Name | Color | Price | item_group_id |
|---|---|---|---|---|
CoolShirt123_red | Cool Shirt | red | $9.99 | CoolShirt123 |
CoolShirt123_blue | Cool Shirt | blue | $9.99 | CoolShirt123 |
| ID | item_group_id | Size | Color |
|---|---|---|---|
tee-shirt-S-Red | tee-shirt | S | Red |
tee-shirt-M-Red | tee-shirt | M | Red |
tee-shirt-L-Red | tee-shirt | L | Red |
tee-shirt-S-Yellow | tee-shirt | S | Yellow |
tee-shirt-M-Yellow | tee-shirt | M | Yellow |
tee-shirt-L-Yellow | tee-shirt | L | Yellow |
tee-shirt-S-Blue | tee-shirt | S | Blue |
tee-shirt-M-Blue | tee-shirt | M | Blue |
tee-shirt-L-Blue | tee-shirt | L | Blue |
tee-shirt-S-Green | tee-shirt | S | Green |
tee-shirt-M-Green | tee-shirt | M | Green |
tee-shirt-L-Green | tee-shirt | L | Green |