You can enable or disable tabs in the PDP or ADP at the domain and entity type level. For example, you can enable or disable tabs such as Relationships, Variants, and so on.
Sample JSON Configuration
Sample JSON to enable or disable tabs in ADP. In this scenario, the Assets and Variants tabs are disabled for ADP.
{
"metaInfo": {
"dataIndex": "config",
"collectionName": "configObjects",
"responseObjectName": "response"
},
"configObjects": [
{
"id": "rock-product-detail-tabs_digitalAsset_commerceUXConfig",
"name": "rock-product-detail-tabs_digitalAsset",
"version": "1.0",
"type": "commerceUXConfig",
"properties": {
"createdByService": "system",
"createdBy": "system"
},
"data": {
"contexts": [
{
"context": {
"component": "rock-product-detail-tabs",
"domain": "digitalAsset",
"entityType": "_DEFAULT",
"role": "_DEFAULT",
"user": "_DEFAULT"
},
"jsonData": {
"config": {
"tabItems": {
"assets": {
"visible": false
},
"variants": {
"visible": false
},
"attributes": {
"visible": true
},
"relationships": {
"visible": true
}
}
}
}
}
]
}
}
]
}To enable or disable tabs:
Download the attached JSON file.
Open the rock-product-detail-tabs_digitalAsset_commerceUXConfig.json file and specify the following:
Parameters | Details | |
|---|---|---|
context | component | Specify the name of the component to be configured. |
domain | Specify the domain name for which the component is to be configured. For example, digitalAsset. | |
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. | |
user | Specify the user for which the component is to be configured, else _DEFAULT. Note: By default, _DEFAULT is specified for role and user parameters, which implies the component is configured for all roles and users. | |
config | Specify the tab name and set the visibility. | |
visible | Show or hide the tab in PDP/ADP.
| |
Upload the JSON configuration file in the Classic UI. For more information, see How to upload UI Configurations.
In ADP, only the Attributes and Relationships tabs are displayed based on configuration.
