What this helps you do
Reuse the same Small, Medium and Large entries as choices for several products. You can still create ordinary typed options when you do not need shared records.
Before you start
Create a metaobject definition such as Size choice, with a single-line Name field used as its display name. Add Active entries named Small, Medium and Large. See the linked entries guide if you have only created the definition so far.
You need permission to manage products and Custom data.
Steps
- Open Custom data → Products → Add definition. Name the product metafield “Available sizes”.
- Under Type, choose List and Metaobject. Under Metaobject definition, choose Size choice. Save the definition.
- Open a product. In Product metafields, find Available sizes using its add control or More metafields if needed. Select the Small and Medium entries for this product, then save the product.
- Open Add variant combinations, or Manage variant combinations if the product already has variants.
- Beside Option name, select the cylinder icon. Choose Available sizes.
- Review the selected entries. Keep the entries this product actually sells and confirm the selection. Use a clear option name such as “Size”.
- Review the combination count, create the variants, and fill their prices, SKUs and stock. Save the product.
Step 3 means selecting existing entries as this product's answers. For example, one kurta can reference Small and Medium, while another references Medium and Large. You are not making new metaobject definitions for each product. The connected-option picker also lets you choose the entries while connecting.
What happens next
The product's option uses references to those entries. Each chosen size can form a sellable variant, and combining two sizes with two colours creates four combinations.
Why is this a product metafield? It holds the choices available for the whole product. A variant metafield describes one already-created variant, such as Medium / Blue; it does not supply the options from which variants are built.
Why List rather than One? One reference can hold one size entry. A list can hold Small, Medium and Large together. A list of text is still just text; connected options require references to entries with their own identities.
Common problems
- No compatible metafields available: The definition must belong to Products, use List → Metaobject, and target one metaobject definition. A Colour value, a list of Single line text, a single Metaobject reference, or a definition under Variants is not compatible.
- A standard category field is missing: Its category attribute must apply to this product, unless the product already retains values or a connection for that field.
- An entry is rejected: Use Active entries with distinct display names. Names must fit the validation message shown by the picker.
- An existing product refuses a selection: Include entries matching the choices used by its existing variants. The picker protects those combinations from losing their references.
- You changed the shared entries: Recheck the connected products and their variants before continuing to sell them. Do not treat editing a record as a shortcut for creating or deleting stock combinations.
- The connected field cannot be edited in Product metafields: Edit its selected entries in Variants, then save the product. One connected option owns those choices; do not make conflicting edits in both places.