cs-icon.svg

SAP Commerce Cloud App Installation Guide

SAP Commerce Cloud is one of the most flexible and efficient eCommerce project development platforms, specifically for B2B businesses and retailers. Using SAP Commerce Cloud, businesses can adapt to various demands and reduce their dependency on different application modules. It allows you to set up an online store to sell your products.

With the Contentstack Marketplace SAP Commerce Cloud app, you can use and refer to the products and categories from your SAP Commerce Cloud account within your Contentstack entries.

Prerequisites

This step-by-step guide explains how to install and configure SAP Commerce Cloud within your stack.

Steps for Execution

  1. Retrieve Configuration Details for SAP Commerce Cloud
  2. Install and Configure SAP Commerce Cloud in Contentstack Marketplace
  3. Use SAP Commerce Cloud within your Stack
  1. Retrieve Configuration Details for SAP Commerce Cloud

    To get your configuration details for SAP Commerce Cloud, follow the steps given below:

    1. Log in to the SAP Cloud Portal using your SAP Commerce Cloud account credentials.
    2. Click Environments in the left panel, and then click the environment for which you must retrieve the configuration details.
      SAP-Cloud_Portal-Environments 
    3. Copy the API and Backoffice URLs. 
      SAP-Cloud_Portal-API-Backoffice
    4. To retrieve the Base Site ID, follow the steps below:
      1. Click the Backoffice URL and log in using your SAP Commerce Cloud account credentials.
      2. Under Base Commerce, in the left panel, click Base Store.
      3. Click the Base Site whose Base Site ID you want to retrieve.

    You will find the Base Site ID under the PROPERTIES section. 

  2. SAP-Cloud_Portal-Base_Site_ID

  3. Install and Configure SAP Commerce Cloud in Contentstack Marketplace

    To install the application in Contentstack, follow the steps below:

    1. Log in to your Contentstack account.
    2. In the left-hand side primary navigation, click the Marketplace icon to go to the Marketplace.
       Marketplace-Icon
    3. Click Apps from the left panel. 
    4. Within the Marketplace, you can see all the available apps. Hover over the SAP Commerce Cloud app and click Install App.
      SAP-Commerce-Cloud-App
    5. In the popup window, select the stack where you want to install the SAP Commerce Cloud app and click the Install button.
      SAP-Commerce-Cloud-Install-App
    6. On the Configuration screen, enter the following details retrieved from your SAP Commerce Cloud Account:
      1. SAP URL Structure: Choose the type of URL you want to use in your configuration.
        1. For OCC URL (Omni Commerce Connect URL): You can provide the API Base URL retrieved from the SAP Commerce Cloud dashboard.
        2. For Custom URL: If you are not using OCC URL (Omni Commerce Connect URL) from the SAP Commerce Cloud, you can select Custom URL and provide the respective API Base URL and API Route.

          Note: Please choose Custom URL if the URL does not start with https://your-base-url/occ/v2.

      2. API Base URL and API Route
      3. Note: Enter the URL starting from api.

      4. Base Site ID
      5. Backoffice URL
      6. Save in Entry: Choose how you want to save your data in the entry.
        1. If you select Whole JSON, you can select only a limited number of products.
        2. For Custom JSON, you should search and add specific SAP Commerce Cloud Keys you want to fetch. By default, the code and name of the products are selected. 
      SAP-Configuration-Screen
    7. On the UI Locations tab, you can see the predefined app locations. You can use the toggle button corresponding to each UI location to enable or disable it based on your requirements. SAP-UI-Locations
    8. If the webhook is enabled for your app, you can view the webhook logs under the Webhook tab.
    9. Additional Resource: For more information on UI location and webhooks, please refer to the Installed Apps guide.

    10. Click the Save button.
    11. Click Open Stack to start using the SAP Commerce Cloud application.
  4. Use SAP Commerce Cloud within your Stack

    To use the SAP Commerce Cloud application within an entry of your stack, follow the steps given below:

    1. Go to your stack, click the Content Models icon in the left navigation panel, and click the + New Content Type button.
    2. Create a content type by adding relevant details as displayed below: 
      SAP-Content_Type
    3. In the Content Type Builder page, add a Custom field for product in your content type by clicking the Insert a field link represented by a + sign.
    4. Under Select Extension/App, select SAP Commerce Cloud - Product and click the Proceed button. 
      SAP-Custom_Field-Product
    5. Add another Custom field for category in your content type by clicking the Insert a field link represented by a + sign.
    6. Under Select Extension/App, select SAP Commerce Cloud - Category and click the Proceed button. 
      SAP-Custom_Field-Category
    7. After adding the app, click Save or Save and Close to save your changes. 
      SAP-Custom_Field-Save_and_Close
    8. In the left navigation panel, navigate to the Entries page and click + New Entry to create a new entry for the above content type. And then click Proceed.
      You will see the SAP Commerce Cloud custom fields on your entry page as shown below:
      SAP-Custom_Fields_in_Entry
    9. Click the Add Product(s) button, select the products from your SAP Commerce Cloud store and add them to your entry. 
    10. SAP-Products-Media_Library
      The products you selected are referenced within your entry in the thumbnail view:
      SAP-Products-in-Entry
      To view the products in list view, select the list view option from the dropdown as given below:
      SAP-Product-Select_List
      The products you selected are referenced within your entry in the list view:
      SAP-Product-List
    11. To reorder, open in SAP Commerce Cloud or delete the selected product, hover over the product to get the options available, then perform the following:
      1. Click the Drag icon to drag and reorder the product.
      2. Click the Open in SAP Commerce Cloud icon to open the product in the SAP Commerce Cloud app.
      3. Click the Delete icon to delete the product.
    12. Thumbnail View

      SAP-Product-Thumbnail-Edits-Reorder

      List View 

      SAP-Product-List-Edits-Reorder
    13. Click the Save button to save your entry.
    14. You can view more product details in the Sidebar Widget.

      Note: You must save your entry to get the product details in the Sidebar Widget.

    15. In the right navigation panel, select Widgets, and then select SAP Commerce Cloud to view the product details.
      SAP-Product-Sidebar
    16. Enter the product name in the dropdown to search and view the product details.
      SAP-Product-Sidebar-Search
    17. Click the Add Category(s) button, select the categories from your SAP Commerce Cloud store and add them to your entry. SAP-Categories-Media_Library
      The categories you selected are referenced within your entry.
      SAP-Categories-in-Entry
    18. To remove the selected category, hover over the category and click the Remove icon.
      SAP-Categories-Remove
    19. Click the Save button to save your entry.
Was this article helpful?
^