Attribute dependencies can be used to streamline data-entry. Dependencies are rules that modify attribute options as you enter data to be more relevant to the data you’ve already entered. For example, if you are receiving a women’s clothing item and you set the Gender attribute to Women’s, dependencies can limit the options in the Category attribute to just women’s categories. This minimizes data overload by allowing you to remove unlikely info pairings.
Create a Dependency for Relevant Values or Groups
- In the Navigation menu, go to Administration > Attributes.
- Select the dependent attribute, the attribute whose value options will change depending on another attribute, the independent attribute.
- In the below example, the dependent attribute is Category because it will change depending on the independent attribute, Gender.
- Select the value or value group folder for which you want to create a dependency. Press the [Add Dependency] button.
- In the Dependency window under Attribute, select the independent attribute.
- Under Section, select the value that will trigger the dependency. If left blank, any value for the attribute will trigger the dependency.
- Set the Mode to either One or All.
- Optionally, you can enter a custom Name for the dependency. If left blank, the dependency will be named after the independent attribute and section.
- Close the window by pressing the [x] in the top-left corner.
- If you want to edit the dependency, double-click on its name. This opens the Dependency window.
- When you’re finished, press the [Save Changes] button.
Note: For Value group dependencies you will also need to add an independent attribute dependency on the root folder (labeled“/”) for the dependent attribute.
Create a Dependency for Relevant Attributes
Not only can you use dependencies to filter options inside attributes. You can also use them to show or hide entire attributes. For example, an attribute for Waist Size would be relevant if you’re receiving a pair of pants. But it wouldn’t be relevant for receiving a shirt. You can create a dependency to display Waist Size only if the Category attribute is Pants.
- Select the dependent attribute.
- Select the root folder for the attribute (labeled “/”).
- Press the [Add Dependency] button.
- In the Dependency window under Attribute, select the independent attribute.
- Under Section, select the value that will trigger the dependency. If left blank, any value for the attribute will trigger the dependency.
- Set the Mode to either One or All.
- Optionally, you can enter a custom Name for the dependency. If left blank, the dependency will be named after the independent attribute and section.
- Close the window by pressing the [x] in the top-left corner.
- If you want to edit the dependency, double-click on its name. This opens the Dependency window.
- When you’re finished, press the [Save Changes] button.
Create a Dependency with Multiple Rules
There are times where you may need to create a dependency with more than one rule. You may want the Skirts to appear for two genders, Women’s and Girl’s. Or you may have different sets of size values dependent on both Gender and Category attributes (e.g. there may be different sizes for women’s pants and men’s jackets).
- Select the dependent attribute.
- Select the value or value group folder for which you want to create a dependency. Press the [Add Dependency] button.
- In the Dependency window, set the independent attribute and section for the first rule.
- Add a new rule by pressing the [Add] button. Set the attribute and section for the second rule.
- Continue adding as many rules as you desire.
- Set the Mode:
- One. If selected, the dependency will be triggered if at least one rule is true. In the Skirts example, Skirts will be triggered if the Gender is either Women’s OR Girl’s.
- All. If selected, the dependency will be triggered only when all rules are met. In the size example, sizes 0-14 will be triggered when you select Women’s for Gender AND Pants for Category. Sizes S-XXL will be triggered only when you select Men’s for Gender AND Jackets for category.
Create a Reverse Dependency
In some cases, a reverse dependency can save you much labor. You may have a value for an attribute dependent on a Product Category attribute. The attribute value is relevant for all but two of your 20 categories. Instead of creating a dependency with 18 rules to show the value for 18 categories, you can create a dependency with 2 rules that hides the value for the 2 other categories.
- Select the dependent attribute.
- Select the value or value group folder for which you want to create a dependency. Press the [Add Dependency] button.
- In the Dependency window, set the independent Attribute. Select a value under Section. Do NOT leave Section blank.
- Set the Mode to None. If selected, when the dependency is triggered, it will hide the value.
Comments
2 comments
Is it possible to make a dependency rule to have a single attribute (color for example) as "allowed" for all (or many) categories, but a "required" attribute in others?
Hello Alisdair,
That function is not available currently. If there are other customers with this specific scenario, please upvote Alisdair's comment and we will consider getting this on the feature addition queue.
Please sign in to leave a comment.