close

Filter

Connector for Salesforce Commerce Cloud Manual / Version 2101

Table Of Contents

9. Commerce Adapter Properties

sfcc.default-locale
Type java.util.Locale
Default  
Description

The default locale for accessing the commerce system if no locale parameter was passed into request.

sfcc.host
Type java.lang.String
Default shop.demandware.net
Description

The full qualified hostname of the SFCC instance.

sfcc.link.category-page-link-template
Type java.lang.String
Default  
Description

Link template for links to product detail pages (PDPs).

Used to link to PDPs in the CoreMedia CMS. Template string is usually post processed on the commerce side.

sfcc.link.cm-ajax-link-template
Type java.lang.String
Default  
Description

Link template for AJAX URLs.

For example used to include personalized contents/fragments. Template String is usually post processed on the commerce side.

sfcc.link.cm-content-link-template
Type java.lang.String
Default  
Description

Link template for links to CoreMedia content.

Template string is usually post processed on the commerce side.

sfcc.link.product-page-link-template
Type java.lang.String
Default  
Description

Link template for links to product detail pages (PDPs).

Used to link to PDPs in the CoreMedia CMS. Template string is usually post processed on the commerce side.

sfcc.link.shop-page-link-template
Type java.lang.String
Default  
Description

Link template for links to shop pages.

Shop pages are represented with "Augmented Pages" in the CoreMedia CMS. Template string is usually post processed on the commerce side.

sfcc.link.storefront-url
Type java.lang.String
Default  
Description

Base URL of the commerce storefront

sfcc.link.storefront-url-for
Type java.util.Map<java.lang.String,java.lang.String>
Default  
Description

Storefront URLs, which are used to build storefront links to shop pages and resources for different environments. The structure of the Map should be: key=environment, value=url. The environment is the hardcoded name of the entity param which must be configured on the CM App side e.g. `commerce.hub.data.customEntityParams.environment=US|DE``

IMPORTANT! The keys used here, must match those used on the CM App side via metadata.custom-entity-param-names={environment}

Use this property if the adapter needs to distinguish environments. In this case it is required to set the above mentioned custom entity param.

Examples:

sfcc.link.storefront-url-for.us=https://sandbox-us.demandware.net/on/demandware.store/
sfcc.link.storefront-url-for.us=https://sandbox-de.demandware.net/on/demandware.store/
sfcc.oauth.client-id
Type java.lang.String
Default  
Description

ClientID used for all Data and Shop REST API Calls to the Salesforce Commerce System. Used to set permissions for the ClientID on Shop and Data API - for example, which resources the ClientID is allowed to access

sfcc.oauth.client-password
Type java.lang.String
Default  
Description

Password used together with the clientId.

sfcc.oauth.host
Type java.lang.String
Default account.demandware.com
Description

Host name of central SFCC endpoint for authentication.

No need to customize.

sfcc.oauth.path
Type java.lang.String
Default /dw/oauth2/access_token
Description

Path to retrieve access token.

sfcc.oauth.protocol
Type java.lang.String
Default https
Description

Protocol used to request access token.

sfcc.ocapi.custom-attributes-for
Type java.util.Map<java.lang.String,java.util.List<java.lang.String>>
Default  
Description

Configure attribute names, which are transmitted to the client as customAttributes. The key is the name of the OCAPI Document in lowercase and removed "_" {@link AbstractOCDocument#getOcType()}.

The value is a comma separated list of attributes, which shall be available on the client side via com.coremedia.livecontext.ecommerce.common.CommerceBean#getCustomAttributes.

The value is transmitted as String representation of the JSON Object.

Example:

sfcc.ocapi.custom-attributes-for.product=image_groups,c_isSale
sfcc.ocapi.custom-localized-attributes-for
Type java.util.Map<java.lang.String,java.util.List<java.lang.String>>
Default  
Description

Same as {@link #customAttributesFor} but for localized properties. Only the value for the current locale of the request is transmitted to the client.

sfcc.ocapi.data.customer-groups.count
Type java.lang.Integer
Default  
Description

Optional count for retrieving only a subset of all customer groups. If not set, the default behaviour of the salesforce Data API will apply.

sfcc.ocapi.host
Type java.lang.String
Default sandbox.demandware.net
Description

Host name (FQDN) of your SFCC Instance.

sfcc.ocapi.http-client.accept-cookies
Type java.lang.Boolean
Default false
Description

Setting if cookies should be accepted.

sfcc.ocapi.http-client.connection-pool-size
Type java.lang.Integer
Default 20
Description

Defines the overal connection limit for a connection pool.

sfcc.ocapi.http-client.connection-request-timeout-ms
Type java.lang.Integer
Default 60000
Description

Http Client Configuration for Rest communication with SFCC OCAPI Services.

sfcc.ocapi.http-client.connection-timeout-ms
Type java.lang.Integer
Default 60000
Description

Http Client Configuration for Rest communication with SFCC OCAPI Services.

sfcc.ocapi.http-client.max-connections-per-route
Type java.lang.Integer
Default 2
Description

Defines a connection limit per one HTTP route.

sfcc.ocapi.http-client.network-address-cache-ttl-ms
Type java.lang.Integer
Default 30000
Description

Http Client Configuration for Rest communication with SFCC OCAPI Services.

sfcc.ocapi.http-client.socket-timeout-ms
Type java.lang.Integer
Default 60000
Description

Http Client Configuration for Rest communication with SFCC OCAPI Services.

sfcc.ocapi.http-client.trust-all-ssl-certificates
Type java.lang.Boolean
Default true
Description

Setting if client should trust all ssl certificates.

sfcc.ocapi.protocol
Type java.lang.String
Default https
Description

Protocol used for OCAPI REST communication.

sfcc.ocapi.sandbox
Type java.lang.Boolean
Default false
Description

Set to true if integrating with a sandbox instance. Adjust base paths for REST API requests

On sandbox instances the base paths must be prefixed with '/s/{siteId}' see: https://documentation.demandware.com/DOC2/topic/com.demandware.dochelp/OCAPI/16.4/usage/UrlSchema.html

sfcc.ocapi.version
Type java.lang.String
Default v18_8
Description

Version of Rest Service used.

URI path variant of {@link SfccConfigurationProperties#SFCC_VENDOR_VERSION}

sfcc.vendor-version
Type java.lang.String
Default 18.8
Description

REST API Version used for REST communication with the commerce system.

sfcc.cache.enabled
Type java.lang.Boolean
Default true
Description

Enable or disable caching.

metadata.additional-metadata
Type java.util.Map<java.lang.String,java.lang.String>
Default  
Description

Map of additional metadata.

Can be used as customization hook. All properties starting with "metadata.additional-metadata.*" are transmitted to the generic client on the CMS side.

metadata.custom-attributes-format
Type com.coremedia.commerce.adapter.base.entities.CustomAttributesFormat
Default  
Description

Format of the custom attribute values {@link CustomAttributesFormats}.

The keys are always plain strings.

Used to identify the deserialization format on the CMS side.

metadata.custom-entity-param-names
Type java.util.Collection<java.lang.String>
Default  
Description

List of parameter names, which values need to be transmitted with every entity request from the CMS side.

metadata.replacement-tokens
Type java.util.Map<java.lang.String,java.lang.String>
Default  
Description

Map of key value pairs.

Used as replacement map for example for link building in the generic client on the CMS side.

metadata.supports-multi-catalog
Type java.lang.Boolean
Default false
Description

Flag if commerce adapter implementation supports multiple catalogs.

metadata.vendor
Type java.lang.String
Default  
Description

Name of the vendor.

Used to identify the connected vendor on the CMS side.

Table 9.1. SFCC Commerce Adapter related Properties


Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.