close

Filter

loading table of contents...

Connector for SAP Commerce Cloud Manual / Version 2110

Table Of Contents

5.7.3 Commerce Links for Studio Preview

Studio and the Preview-CAE do not know the SAP Hybris Commerce URL-Schema of shop pages. Therefore, the CoreMedia service StudioPreviewUrlService deployed in the SAP Hybris Commerce system generates the commerce URLs in order to preview commerce items as shop pages in CoreMedia Studio. The class CommerceLinkScheme wraps the corresponding @Link methods in the CoreMedia Blueprint workspace. It retrieves the commerce links via the PreviewUrlService from the Commerce Adapter.

The request flow is quite complicated. The example below represents the request flow to preview a Hybris product from within CoreMedia Studio:

  1. Studio generates this preview URL for the product with the given ID.

    https://preview-cae-host/preview?id=hybris:///catalog/product/104176
    &site=Hybris-Apparel-UK-Site-ID&contentTimestamp=54539
    &p13n_test=true&p13n_testcontext=0 > 302
  2. The Preview-CAE receives the preview URL, internally dispatches it to the CommerceLinkScheme and sends a redirect to the StudioPreviewUrlService deployed in the SAP Hybris Commerce System.

    https://hybris-host/yacceleratorstorefront/cmpreview?site=apparel-uk&id=104176
    &type=product&cmsTicketId={ticket-id} > 302
  3. The SAP Hybris Commerce System receives the request, generates a CMSPreviewTicket with the given parameters and redirects to the Hybris PreviewServlet.

    https://hybris-host/yacceleratorstorefront/cx-preview
    ?site=apparel-uk&cmsTicketId={ticket-id} > 302
  4. The SAP Hybris Commerce System receives the previewServlet request again and redirects to the resulting shop URL:

    https://hybris-host/yacceleratorstorefront/c/
    Nightlife-T-Shirt-Women/p/104176?cmsTicketId={ticket-id}> 200

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

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