SFCC slot example

An example slot for use with the Dynamic Content Salesforce Commerce Cloud (SFCC) integration. The mapping between a Dynamic Content slot and an SFCC content slot is setup when a slot is created.

The slot type includes an _environment property which contains two properties within it: sfcc_slot and sfcc_category_slot. These properties are only used in the SFCC integration.

Pre-requisites

This slot is intended for use with the Dynamic Content SFCC integration and you must have that integration setup on your hub in order to use it. See Dynamic Content SFCC integration overview for more information.

How to use

If you're using the Dynamic Content SFCC integration, you can change the contentTypes array to include your content types.

SFCC slot snippet

{
   "$schema":"http://json-schema.org/draft-07/schema#",
   "allOf":[
      {
         "$ref":"http://bigcontent.io/cms/schema/v1/core#/definitions/content"
      }
   ],
   "$id":"https://schema-examples.com/sfcc-slot",
   "title":"SFCC slot example",
   "description":"A slot configured to use with the Dynamic Content SFCC integration",
   "type":"object",
   "properties":{
      "_environment":{
         "type":"object",
         "properties":{
            "sfcc_slot":{
               "$ref":"https://raw.githubusercontent.com/amplience/dc-integrations-sfcc/master/content-types/sfcc/sfcc.json#/definitions/sfcc_slot"
            },
            "sfcc_category_slot":{
               "$ref":"https://raw.githubusercontent.com/amplience/dc-integrations-sfcc/master/content-types/sfcc/sfcc.json#/definitions/sfcc_category_slot"
            }
         }
      },
      "content":{
         "title":"Page Content",
         "allOf":[
            {
               "$ref":"http://bigcontent.io/cms/schema/v1/core#/definitions/content-link"
            },
            {
               "properties":{
                  "contentType":{
                     "enum":[
                        "https://schema-examples.com/tutorial-banner"
                     ]
                  }
               }
            }
         ]
      }
   }
}

Content form preview

An example of creating a slot item using a slot type registered from the SFCC slot schema is shown in the image below. You can enter the SFCC slot and category IDs when you create the slot.

Creating a slot from the SFCC slot type
Creating a slot from the SFCC slot type

When the slot is added to an edition, the SFCC specific fields will not be shown.

Adding a slot created from the SFCC slot type to an edition
Adding a slot created from the SFCC slot type to an edition

Dynamic Content SFCC integration overview

SFCC slot mapping

results matching ""

    No results matching ""