How to disable sync validation

Prev Next

By default, the application displays a list of attributes as recommended fixes based on sync validation in the Data Validations dialog in PDP. However, you can configure to disable the sync validation to display only the Required Fix list.

Sample JSON configuration

Sample JSON to disable the sync validation in PDP.

{
  "metaInfo": {
    "dataIndex": "config",
    "collectionName": "configObjects",
    "responseObjectName": "response"
  },
  "configObjects": [
    {
      "id": "rock-attribute-manage-v2_pstdsku_commerceUXConfig",
      "name": "rock-attribute-manage-v2_pstdsku",
      "version": "1.0",
      "type": "commerceUXConfig",
      "properties": {
        "createdByService": "system",
        "createdBy": "system"
      },
      "data": {
        "contexts": [
          {
            "context": {
              "component": "rock-attribute-manage-v2",
              "entityType": "_DEFAULT",
              "role": "_DEFAULT"
            },
            "jsonData": {
              "config": {
                "properties": {
                  "doSyncValidation": false
                }
              }
            }
          }
        ]
      }
    }
  ]
}

To disable sync validation in PDP:

  1. Download the attached JSON file.

rock-attribute-manage-v2_pstdsku_commerceUXConfig
896 Byte
  1. Open the rock-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

Specify the following.

doSyncValidation

Enable or disable the sync validation in PDP. By default, the value is set to true.

  • true – implies the sync validation is displayed.

  • false - implies the sync validation is hidden.

  1. Upload the JSON configuration file in the Classic UI. For more information, see How to upload UI Configurations.

  2. Go to PDP and update the product details in the Attributes tab.

  3. Click Save Changes.

  4. You can view only the Required Fix list based on the configuration.

    ui-configurations-pdp-attributes-disable-recommended-fixes.png