You can configure a path attribute to display its taxonomy hierarchy in the Taxonomy stepper while creating a new product at the domain or entity type level.
Sample JSON configuration
Sample JSON to configure the path attribute for the Create New wizard.
{
"metaInfo": {
"dataIndex": "config",
"collectionName": "configObjects",
"responseObjectName": "response"
},
"configObjects": [
{
"id": "rock-path-attribute-manage-v2_pstdsku_commerceUXConfig",
"name": "rock-path-attribute-manage-v2_pstdsku",
"type": "commerceUXConfig",
"data": {
"contexts": [
{
"context": {
"component": "rock-path-attribute-manage-v2",
"entityType": "pstdsku",
"role": "_DEFAULT"
},
"jsonData": {
"config": {
"properties": {
"pathAttribute": "pstdmastertaxonomy",
"leafNodeOnly": "true",
"multiSelect": "true"
}
}
}
}
]
}
}
]
}To configure the path attribute for the Create New wizard:
Download the attached JSON file.
Open the rock-path-attribute-manage-v2_pstdsku_commerceUXConfig.json file and specify the following:
Parameters | Details | |
|---|---|---|
context | component | Specify the name of the component to be configured. |
entityType | Specify the entity type for which the component is to be configured, else _DEFAULT. | |
role | Specify the role for which the component is to be configured, else _DEFAULT. Note: By default, _DEFAULT is specified for role, which implies the component is configured for all roles and users. | |
config > gridConfig | Specify the following. | |
pathAttribute | Specify the path attribute name that must be configured for the Taxonomy stepper. | |
leafNodeOnly | Enable or disable the leaf node selection in the taxonomy hierarchy. By default, the value is set to true.
| |
multiselect | Enable single-value or multi-value selection for the path attribute. By default, the value is set to true.
| |
Upload the JSON configuration file in the Classic UI. For more information, see How to upload UI Configurations.
In the Create New dialog, you can view the taxonomy hierarchy of the configured path attribute.
