top of page

B2B Accelerator Installation

​


We have divided the accelerator installation in multiple steps as discussed below:

 

1) Download and unzip the suite file: The hybris suite file is given in the form of zip from SAP Portal which we need to download from SAP portal and unzip the file. We can utilize any hybris version above 6.0 for installation as per requirement. 

​
 

 

 

 

 

 

 

 

 

 

 

2) Recipe Installation: We can now install the recipe by utilizing the above unzipped file. We can install the B2C, B2B and china accelerator as per requirement. 

The command to install Recipe is install.bat –r recipeName.  Go to installer path in command prompt and run below code to install any one recipe :

 

C:\projects\hybriscommerce\installer>install.bat -r b2c_acc_plus

 

 

3) Custom Extensions using Modulegen:  We have to add the custom extension to add the project specific requirements. We can run the modulegen command to generate the set of standard extension which can be letter used for customization. A

 

ant modulegen -Dinput.module=accelerator -Dinput.name=b2btraining -Dinput.package=com.hybriswiki.training -Dinput.template=develop

​

After running the modulegen command in the command prompt we can see the set of training related extensions got generated. We have to add the custom extensions in the localextensions.xml  file in config older. 

​

  • Add the generated extensions to the localextensions.xml file.

 

<extension name="b2btrainingfulfilmentprocess"/>

<extension name="b2btrainingcockpits"/>

<extension name="b2btrainingcore"/>

<extension name="b2btrainingfacades"/>

<extension name="b2btrainingtest"/>

<extension name="b2btraininginitialdata"/>

<extension name="b2btrainingstorefront"/>

​

  •  Delete the following extensions from localextensions.xml file.

 

<extension name="yacceleratorfulfilmentprocess"/>

<extension name="yacceleratorcockpits"/>

<extension name="yacceleratorcore"/>

<extension name="yacceleratorfacades"/>

<extension name="yacceleratortest"/>

<extension name="yacceleratorinitialdata"/>

<extension name="yacceleratorstorefront"/>

​

 

 

 

4) Add B2B Accelerator Specific Extensions: Add the following extensions in localextensions.xml file to achieve the B2b accelerator functionalities.

​

<extension name='powertoolsstore' />

<extension name='b2bcommercebackoffice' />

<extension name='b2badmincockpit' />

<extension name='b2bacceleratoraddon' />

<extension name='commerceorgaddon' />

​

 

 

5) B2B Accelerator add on Installation: Install the b2bacceleratoraddon and commerceorgaddon on the b2btrainingstorefront to achieve the b2b accelerator set up.  

 

ant addoninstall -Daddonnames="b2bacceleratoraddon" -DaddonStorefront.yacceleratorstorefront="b2btrainingstorefront"

ant addoninstall -Daddonnames="commerceorgaddon" -DaddonStorefront.yacceleratorstorefront="b2btrainingstorefront"

 

​

6) Add Site URL in properties: Add the following properties to “ < HYBRIS_HOME >/hybris/config/local.properties “ file.

​

website.powertools.http=http://powertools.local:9001/b2btrainingstorefront

website.powertools.https=https://powertools.local:9002/b2btrainingstorefront

​

7) Build code and Start hybris server: We can now run the build and start server from the platform folder using the following commands. 

  • Build Code : ant clean all 

  • Start server: hybrisserver.bat 

​​

​

8) System Initialization: Initialize the hybris system it will create the new DB schema, new index configuration and also set up the cockpit related data like backoffice/ cmscockpit.  We can do initilization in two way. 

  • Initialize from CMD  :  Go to the platform folder and run the ant intialize command. 

  • Initialize from HAC:

    • Go to url  http://localhost:9001 /hac url after server start.

    • Select the toggle all option and click on the initialize button.

    • This process will take some time wait for successful completion then proceed for next steps.

​

​

​

​

​

​

​

​

​

​

​

​

​

9) Host file configuration: Add below mappings in the host file at the at path C:\Windows\System32\drivers\etc\location. 

​

127.0.0.1   powertools.local

​​

​

10) Access the site in browser:Now you should be able to access the url https://powertools.local:9002/b2btrainingstorefront/powertools/en/USD.

​

​

​

hybris b2b
hybris b2b
hybris b2b

About the Author

 

Piyush Singh is a seasoned technology enthusiast and educator with a passion for making complex concepts accessible to everyone. With over 10 years of experience in the tech industry working as consultant,  Piyush specializes in Java, Sap Hybris technology and has a knack for breaking down intricate topics into easy-to-follow tutorials.

​​​​​​​

   Connect with Author

LinkedIn

Email

​

​

bottom of page