# How to set up a variant group model

## Setting up variant group model

To set up a variant group model, you need to add it to an existing product structure that has variants, either when editing it or during the setup. For this example, we will be using the product structure "Demo Structure" from the tutorial [how-to-set-up-and-edit-a-product-model](https://docs.struct.com/tutorials/guides/how-to-use-product-structures/how-to-set-up-and-edit-a-product-model "mention"), which was also updated to contain the variant model in the tutorial [How to set up a variant model](https://docs.struct.com/tutorials/guides/how-to-use-product-structures/how-to-set-up-a-variant-model).

<figure><img src="https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FJXZ2qN1a8SmZ5OPQeDUg%2Fimage.png?alt=media&#x26;token=2675d165-952d-4440-bd1e-d9707c42509d" alt=""><figcaption><p>General settings</p></figcaption></figure>

When configuring the product model, toggle the "Has variant groups" option to enable the variant group model in the product structure. A new variant group model option will appear under the variant model configurations.

Click on the variant group model title to expand and view the various setup options and navigate to "Model setup".

### Model setup

<figure><img src="https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FJT211cs8wV6flcOeE0PL%2Fimage.png?alt=media&#x26;token=e0520167-b8c9-48ca-97e9-13e2df47cd1c" alt=""><figcaption><p>Variant group data model setup</p></figcaption></figure>

When creating a data model for variant groups, the process is similar to setting up a variant or product model. The key distinction is that you need to specify grouping attributes. In the example above we are grouping based on the color of the variants.

Follow the same setup process detailed in the previous guides. Consult the [product model guide](https://docs.struct.com/tutorials/guides/how-to-set-up-and-edit-a-product-model#model-setup) or the [variant model guide](https://docs.struct.com/tutorials/guides/how-to-set-up-a-variant-model#model-setup) for more information.

<figure><img src="https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FNk6dCRoLtRFneF0f2xVT%2Fimage.png?alt=media&#x26;token=0b14253e-8abd-47eb-9cc0-79ca86350386" alt=""><figcaption><p>Added tab - Variants</p></figcaption></figure>

You can add a "Variants" tab, as shown in the example above, to easily view different variants within the selected variant group.

Once the data model has been configured you can proceed to wizard setup.

### Wizard setup

<figure><img src="https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FdbqTbwot7v3PNAWF3mLs%2Fimage.png?alt=media&#x26;token=54aba1f6-3f1d-4e80-bf5e-b36b624aaa89" alt=""><figcaption><p>Wizard setup</p></figcaption></figure>

Just like when setting up a product model or variant model, the wizard setup is optional. However, it can be beneficial to others using the PIM when needing to add or copy new entities. As with the variant model, you only have the option to set up a "Model creation flow" to guide users when creating a new variant group.&#x20;

In the example above color has been set as mandatory in the wizard step, as it is used as an grouping attribute and therefore needed.

Configuring a wizard setup in a variant group model, is done the same way as for the [product model](https://docs.struct.com/tutorials/guides/how-to-set-up-and-edit-a-product-model#wizard-setup).

Once done with the wizard setup the next setup is display settings.

### Display settings

<figure><img src="https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FVd5Uy8tS4ycsmjTiLDqF%2Fimage.png?alt=media&#x26;token=98fbe698-5857-427a-85d3-f2faaba757a1" alt=""><figcaption><p>Display settings setup</p></figcaption></figure>

The setup of display settings in the variant group model is done the same way as the [product model](https://docs.struct.com/tutorials/guides/how-to-set-up-and-edit-a-product-model#display-settings).

In the example above, thumbnails are generated using the PrimaryImage attribute, and the display name is rendered from the color attribute.

The next and final step in the setup of variant group model is identifiers.

### Identifiers

<figure><img src="https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2F6p0SxN1xthU7pTtupqma%2Fimage.png?alt=media&#x26;token=7edfa015-6584-45cd-938a-afbf8fe880f5" alt=""><figcaption><p>Identifiers setup</p></figcaption></figure>

Identifiers can uniquely identify each variant group, similar to the product and variant models. The setup process is identical to previous models and remains optional. For further details, refer to either the [product model tutorial](https://docs.struct.com/tutorials/guides/how-to-set-up-and-edit-a-product-model#identifiers).&#x20;
