Use a metafield to match the active product card color
By default, product cards activate the first available variant. Use the custom.active_color metafield on a collection to pre-select a specific color variant for every product card in that collection, without any customer interaction.
When a matching variant is found, the whole card updates to it: the variant image, price, highlighted swatch, and stock badges. Quick view and quick add open on that variant as well, rather than on the product default. For example, a "Summer Blue" collection can show the blue variant of every product automatically.

Step 1 — Create the metafield definition
In Shopify Admin, go to Settings → Metafields and metaobjects → Collections.
Click Add definition and configure:
Name —
Active colorNamespace and key —
custom.active_colorType — Metaobject → Color, list of values
Click Save.

Step 2 — Assign colors to a collection
Open any collection in Shopify Admin.
Scroll to Metafields → Active color.
Click Select entries and choose one or more Color entries.
Save the collection.

Step 3 — See the result
Helix applies the metafield automatically — it only needs the product cards to be showing that collection:
In a section (Collection Tabs, Featured Collection, etc.) — set the section's Collection to the one that has the Active color metafield.
On the collection page — open a collection that has the Active color metafield; its product grid picks it up automatically.

Last updated