Steps to Install SAP Commerce Cloud 2211/Install SAP Hybris 2105 to 2211

Let us discuss What is Sap Commerce (or) Hybris,What is the Purpose of SAP Commerce ? Let's say we have a requirement to develop an Ecommerce Site or Shopping Site then we can use SAP COMMERCE . Right now we are planning to use SAP COMMERCE , it means we need to install SAP COMMERCE Software After installation we get a Ready Made Site (or) ready to use site. Ready made site means 80% of site code and functionality is ready.

Step 1: Download SAP Commerce Software.

Step 2 : Before extracting the zip file using 7 zip ,observe the sap commerce software name CXCOMCL221100U_20-70007431.ZIP

Try to avoid special characters like (spaces or , _ ,- ) in zip file names because we might face problems while installing . So rename with short names like CX2211.zip then extract. If you don't have 7 zip file software in your system ,you can download from https://www.7-zip.org/download.html according to your system requirements.
Extract below folder with the help of 7-Zip tool.
Open CX2211 folder you can see below folders

Step 3: Sap Commerce will provide the code

This code is based on JAVA .So we need to Set JAVA PATH. Suppose if we are using Different Versions in Sap Commerce like 1905 2005 2011 2105 ====> JAVA 11(or) Sapmachine-jdk-11(preferable)
2205 ,2211 ====> JAVA 17(or)Sapmachine-jdk-17(preferable)
Note:- Sapmachine-jdks are recommendable
Download jdk based upon SAP Commerce Version
Go to Edit Environment ===> add New System Variable ===>set variable value as C:\Program Files\SapMachine\JDK\17
Click on path add %JAVA_HOME%\bin in Edit environment variable
How do I know if the java path is set correctly or not ?
Currently I have java 17 because I'm using sap commerce version 2211.
After installation we get ready-made-sites and we also get some tools like backoffice,hac,smartedit To use this kind of tool we need a minimum of one user . Sap commerce provides a lot of users Example: i)Admin ii)Product Manager iii)asagent …etc We need to set User Password, So Generally we do for Admin How do I set the admin user password?

Goto installer ===> recipes We can see below recipes
I want to install the CX recipe (because it provides sample b2b site and b2c sites)
Note:- Recipe is like template
Open CX file => open build.gradle add above property
Install SAP COMMERCE Software Firstly observe before installation what we have
E:\HybrisSuite\CX2211\hybris BIN folder
In BIN folder we have modules and platform

Step 4 : Install Recipe E:\HybrisSuite\CX2211\installer> install.bat -r cx -A initAdminPassword=nimda

After Installation Successful Go to E:\HybrisSuite\CX2211\hybris location and Observe
BIN IS Provided by SAP Commerce (OOTB) config,data,log,roles,temp are generated after cx recipe installation i.e here we do our changes.
Custom folder is generated after cx recipe installation.

Note :After Installation In the Config folder we have two important files.

Step 5:-

After Installing In Sap commerce there is a lot of code so we need to build it(Do the build) .For Build purposes we are using ANT TOOL. This ANT TOOL recognize/understand commands from build.xml(E:\HybrisSuite\CX2211\hybris\bin\platform)
E:\HybrisSuite\CX2211\hybris\bin\platform>setantenv.bat
E:\HybrisSuite\CX2211\hybris\bin\platform>ant clean all

Step 6: E:\HybrisSuite\CX2211\hybris\bin\platform ant initialize

Step 7: Start the Server E:\HybrisSuite\CX2211\hybris\bin\platform>hybrisserver.bat debug

Step 8:- Go to C:\Windows\System32\drivers\etc Open hosts file Add below lines

#localhost name resolution is handled within DNS itself. 127.0.0.1 localhost 127.0.0.1 electronics.local apparel-uk.local apparel-de.local apparel-uk.local powertools.local
In Windows, the hosts file is a normal plain text file containing IP addresses and host names. This file is used for mapping servers or hostnames to their appropriate IP addresses.

Step 9: Access the sites and tools

What we get After Installation 1)Because of CX - we get 3 sample B2C sites https://localhost:9002/yacceleratorstorefront/?site=apparel-uk
https://localhost:9002/yacceleratorstorefront/?site=apparel-de&clear=true

https://localhost:9002/yacceleratorstorefront/?site=electronics

We get 1 sample B2B site. https://localhost:9002/yb2bacceleratorstorefront/?site=powertools
Along with these sites we get Tool called Backoffice https://localhost:9002/backoffice
Backoffice is a UI tool– to see the tables and tables data and also perform crud operation(create ,update/modify,Read/see,Delete) Username:admin password:nimda
One more Tool called HAC(Hybris administration Console) We can perform administration activities . https://localhost:9002/hac Username:admin password:nimda
If you take any ecommerce site we will be having content. To manage this content we need a tool called Smartedit https://localhost:9002/smartedit

Comments

Smm said…
Very Nice.. Great work...
Mahesh Yadav said…
Very informative blog for SAP commerce developers.
Anonymous said…
Good work
Anonymous said…
It's good work
Anonymous said…
Good Job
Anonymous said…
Very informative 👍
Anonymous said…
Great work 👍🏻

Popular posts from this blog

Latest SAP Commerce (Hybris) Interview Questions

OCC Webservices in SAP Commerce(hybris) 2211 using YOCC template – Part 1