SAP Commerce Cloudinary Extension Setup Guide-1
SAP Commerce Cloudinary Extension Setup Guide-1
TABLE OF CONTENTS
Introduction 3
Pre-requisites 3
Prerequisites for Spartacus Storefront 3
1
Install Recipe 10
Install Required Addon 10
Start SAP Commerce Server 11
2
Introduction
The Cloudinary SAP Commerce Integration Setup Guide is for technical users who want to
install the integration as part of their SAP Commerce system setup. The supported versions are
from 1811 and later.
Pre-requisites
● JAVA 11
● MySQL 5.7
● SAP Commerce Suite 1811 or later
● MySQL DB driver
3
B2C Accelerator and Spartacus Setup Steps
Follow the steps below if you are installing the extensions on a new system and don't have any
existing SAP Commerce setup.
For CX Commerce 2005 Local Environment Setup, use the latest 2005 CX Commerce. This
suite contains both CX Commerce and CEP extensions.
Clone Repository
To clone the Cloudinary repository you need to have GitHub repository access.
Clone the repository to the custom ({your sap cx base directory}/bin/custom) folder from this
GitHub link, and switch to the development branch:
https://github.com/cloudinary/cloudinary_sap_commerce.git
Create Symlink
Change directory to {your sap cx base directory}/hybris and execute this command:
For windows:
4
Deploy the JDBC JAR
In order to install the connector:
1. Download mysql-connector-java-5.1.37-bin.jar
2. Open a File Explorer.
3. Copy mysql-connector-java-5.1.37-bin.jar to
/home/user/cloudinary/hybris/bin/platform/lib/dbdriver.
Install Recipe
A Cloudinary recipe is required for installing and initializing required Cloudinary extensions and
configuration.
Copy cloudinary_b2c.zip from {your sap cx base directory}/recipes and extract it to your local
CX commerce recipes folder.
Open a command line and go to the “installer” directory of your SAP Commerce instance.
5
Install Required Addon
Follow the steps below if you are installing the extensions on an existing SAP Commerce
system.
6
<your custom b2c storefront
extension>.additionalWebSpringConfigs.cloudinarymediaaddon
7
Note - As a quick validation you can inspect a media from the storefront and verify that the
source URL is pointing to Cloudinary.
For CX Commerce 2005 Local Environment Setup, use the latest 2005 CX Commerce.
8
Clone Repository
To clone the Cloudinary repository you need to have GitHub repository access.
Clone the repository to the custom ({your sap cx base directory}/bin/custom) folder from
https://github.com/cloudinary/cloudinary_sap_commerce.git and switch to the development
branch.
Create Symlink
Change directory to {your sap cx base directory}/hybris and execute this command:
For windows:
9
CREATE USER ‘cloudinary’@'localhost' IDENTIFIED BY 'cloudinary'; GRANT ALL
PRIVILEGES ON cloudinary.* TO 'cloudinary'@'localhost' WITH GRANT OPTION; flush
privileges;
Install Recipe
A Cloudinary recipe is required for installing and initializing required Cloudinary extensions and
configuration.
Copy cloudinary_b2b.zip from {your sap cx base directory}/recipes and extract it to your local
CX commerce recipes folder
Open a command line and go to the “installer” directory of your SAP Commerce instance.
Follow the steps below if you are installing the extensions on an existing SAP Commerce
system.
10
<extension name='mediaconversion' />
<extension name='mediaconversionbackoffice' />
<extension name='cloudinarymediacore' />
<extension name='cloudinarymediabackoffice' />
<extension name='cloudinarymediasmartedit' />
<extension name='cloudinarymediawebservices' />
<extension name='cloudinarymediafacades' />
<extension name='cloudinarymediab2baddon' />
11
To start the server, from the same terminal shell:
Note - As a quick validation you can inspect a media from the storefront and verify that the
source URL is pointing to Cloudinary.
12
Uninstall SAP Commerce B2C Cloudinary Extension
Uninstall Extension
Follow the steps below if you are uninstalling the Cloudinary extensions from the SAP
Commerce system.
Note - As part of the Initialization process, the OOB data will be created in the System, but if
you still want to use Cloudinary media we should download all the originals from Cloudinary and
import them in SAP.
13
Start SAP Commerce Server
To perform this step, we use the Hybris Server, which is a pre-configured application server
based on Apache Tomcat.
Note - As a quick validation you can inspect a media from the storefront and verify that the
source URL is pointing to your local system not to Cloudinary .
14
Uninstall SAP Commerce B2B Cloudinary Extension
Uninstall Extension
Follow the steps below if you are uninstalling the Cloudinary extensions from SAP Commerce
system.
Note - As part of Initialization process, the OOB data will be created in System, but if you still
want to use the Cloudinary media you should download all the originals from Cloudinary and
import them in SAP.
15
Start SAP Commerce Server
To perform this step, we use the Hybris Server, which is a pre-configured application server
based on Apache Tomcat.
Note - As a quick validation you can inspect a media from the storefront and verify that the
source URL is pointing to your local system not to Cloudinary .
16