Connector for SAP Commerce Cloud Manual / Version 2307
Table Of ContentsPrerequisites
- The CoreMedia Content Cloud infrastructure has been deployed and is running.
- The Hybris workspace archive has been applied to the Hybris Project Workspace and the SAP Hybris Commerce server is running.
- The SAP Hybris Commerce server is accessible from CoreMedia Studio and the Commerce Adapter servers.
- The CoreMedia Preview CAE and Live CAE are accessible from the SAP Hybris Commerce server.
Check the Studio - Hybris REST Connection
- Open Studio, select the "Hybris Apparel - English" site, open the Library. If necessary, switch the Library to browse Mode.
- In the repository tree view, locate a node named Apparel-Catalog. This is the entry point to browse the connected Hybris product catalog.
- Browse the catalog in studio and check if everything works as expected. Section 6.1, “Catalog View in CoreMedia Studio Library” describes what it looks like.
If errors occur:
- Check the Studio log and the Commerce Adapter log for errors.
- Check in CoreMedia Studio if the "LiveContextSettings" are configured correctly, see Section 4.2, “Shop Configuration in Content Settings”.
- Check if the REST connector is configured correctly (see Section 4.1, “Configuring the Commerce Adapter”).
Check for example, if the deployment property
hybris.host
is configured correctly.
Check Studio - Hybris Preview Integration
Open the Homepage of the "Hybris Apparel - English" site in Studio
The Hybris shop page should be displayed in the preview panel.
- Repeat step 1 for Products and Categories.
If errors occur:
- Check the Studio log, the Preview CAE log and the Commerce Adapter log for errors.
- Check if
hybris.link.storefront-url
is configured correctly for the Commerce Adapter. - Check if the "coremedia_preview" OAuth client has been imported via impex correctly. This is required to request a cmsTicket from Hybris previewwebservices extension.
- Check if,
StudioPreviewUrlService
is accessible. Callhttps://hybrishost:9002/yacceleratorstorefront/cmpreview
. The given URL is incomplete, but the controller should be dispatched and raise an error like "HTTP Status 400 - Required String parameter 'type' is not present".
Check Fragment Connector
Open the Apparel-UK site and check if CoreMedia Demo content is displayed.
The Hybris homepage should be displayed and CoreMedia is embedded.
If errors occurred or no CoreMedia Content is displayed
- Check for errors in the Hybris log and the Preview CAE log and the Commerce Adapter log.
- Check, if
$HYBRIS_HOME/bin/custom/cmlivecontext/project.properties
is configured correctly. - Check in SAP SmartEdit, if the homepage has content slots containing CoreMedia Content Widgets. These slots are named "LiveContext HP Slot XX". If not, something went wrong while importing impex data.