'Has one or more variants selected from' type of restriction
Create a constraint between 2 variants
The most common method is creating restrictions between two or more variants, as this approach covers most product configurator requirements. Depending on the option set type and how each variant is defined, you can hide or display a material (color), a 3D part, or an entire 3D model.
Ways of defining a variant
The effect of a restriction on a variant depends on how that variant is defined, as shown in the image above.
Let's take the ring configurator example below:
Ring with metal and stone variants selection
We have a ring configurator made from 2 'Thumbnail' blocks: Metal and Stone. We already learned how you can add a Thumbnail option set in another chapter. For Metal we have 3 variants and for Stone we have 4 variants. I want to create a restriction when I select White gold (the first metal variant) to have only 2 stone options: white and black diamond. How will I proceed?
First, we access the "Create Options" tab and see the 2 added Metal and Stone option set blocks.
Metal and Stone 'Thumbnail' option sets
In this case, we have 2 sets of Thumbnail options and the constraint effect will be in terms of which materials (color) will be visible and which will not. Since, I mentioned that my restriction will be on Stone depending on which Metal I select, I will need to click on the Stone option block and apply restrictions to the amethyst and sapphire variants or whatever variants you need to restrict depending on the configurator.
Apply restriction for 'amethyst' and 'sapphire' variants in relation with 'white' gold variant
We click on the "chain" button on each of the variants to apply the restriction regarding "white" gold.
Add restriction - version 1
Or
Add restriction - version 2
The above conditions are the same. Once I have applied the restrictions for the 2 variants, I should have each of the "chain" icon buttons marked with an asterisk, as shown below.
Variants with restriction applied
To save the newly added restriction, we first click "Save" and then "Preview" for a quick test.
Effect of restriction
If we select the "White" gold, there will only be 2 diamonds, White and Black. If we change the gold to yellow, we will have all 4 diamonds available.
The same logic can be applied to hiding 3D parts, just make sure to select only the 3D part in the variant, not the material.