How to configure path attribute for Create New wizard

Prev Next

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:

  1. Download the attached JSON file.

rock-path-attribute-manage-v2_pstdsku_commerceUXConfig
879 Byte
  1. 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.

  • true – implies the selection is enabled only for leaf node classifications.

  • false - implies the selection is enabled for both parent and leaf node classifications.

multiselect

Enable single-value or multi-value selection for the path attribute. By default, the value is set to true.

  • true – implies you can select multiple values for the path attribute.

  • false - implies you can select only a single value for the path attribute.

  1. 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.

    ui-configurations-create-new-taxonomy-step.png