close

Filter

Connector for Salesforce Commerce Cloud Manual / Version 2107

Table Of Contents

6.2 Enabling Preview in Shop Context

CoreMedia Content Cloud enables you to directly preview pages for not augmented or augmented products, not augmented or augmented categories and CoreMedia channels in CoreMedia Studio within the shop context (as a shop page with the shop frame around it). Otherwise, you would get a CoreMedia-typical fragment preview that shows a content item with multiple views.

To enable the preview of Category Pages in the shop context, add a Boolean property livecontext.policy.commerce-category-links to your LiveContext settings and set the value "true".

To enable the preview of Product Pages in the shop context, add a Boolean property livecontext.policy.commerce-product-links to your LiveContext settings and set the value "true".

To enable the preview of CoreMedia Channels in the shop context, add a Boolean property livecontext.policy.commerce-page-links to your LiveContext settings and set the value "true".

In order to enable the preview of Commerce shop pages in Studio, proceed as follows:

  1. Make sure the customization coming with the CoreMedia Workspace for Salesforce Commerce Cloud has been applied to your Salesforce Commerce Cloud installation (see Chapter 3, Customizing Salesforce Commerce Cloud).

  1. In the studio-server app, the studio.previewUrlWhitelist property must contain the commerce URL (including the port, for example *coremedia.com or http://localhost:40080). The default CAE preview URL must remain in the studio.previewUrlWhitelist property too.

Note

Note

If your Salesforce Commerce Cloud shop storefront uses any clickjacking prevention features (for example, X-Frame-Options), make sure to allow the shop preview being embedded as an iframe within CoreMedia Studio.

To do so uncomment or adjust the property xss.filter.header.X-Frame-Options in $SALESFORCE_HOME/salesforce/bin/platform/project.properties. For more information refer to the Salesforce documentation.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

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