Add new values to the configuration record via extension

The below code enables us to add content to existing fields in the configuration. The client request was to add custom template for PLP. The current display is grid, list, table.

However, it is required to edit the template for customization. Since customer used SC bundle if we edit the theme, it will stop to update when NetSuite publish some new update. Thus we created new templates via extension and added the new template name to search result option configuration. The below code is used to modify the existing configuration record

{
    "type": "object",
    "modifications": [
    {
        "target": "$.resource.template.facets-item-cell",
        "action": "add",
        "value": "Facet_item_cell_grid_custom.tpl"
    },
    {
        "target": "$.resource.template.facets-item-cell",
        "action": "add",
        "value": "Facet_item_cell_table_custom.tpl"
    },
    {
        "target": "$.resource.template.facets-item-cell",
        "action": "add",
        "value": "Facet_item_cell_list_custom.tpl"
    }
]
}

Leave a comment

Your email address will not be published. Required fields are marked *