cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

What are the steps to setup b2b2c site from scratch?

Former Member

Accepted Solutions (0)

Answers (2)

Answers (2)

arvind-kumar_avinash
Active Contributor
0 Kudos
  1. Download SAP Commerce distribution zip and extract it.

  2. Open command prompt and change directory to installer

  3. Execute the command, install.bat -r b2c_b2b_acc

  4. Once the above command is completed successfully, execute install.bat -r b2c_b2b_acc initialize

  5. The command in step#4 may take up to one hour to complete. Once it is finished, change directory in command prompt to hybris\bin\platform and execute the command, hybrisserver.bat

  6. Enter the following entry in hosts file

    127.0.0.1 apparel-uk.local apparel-de.local electronics.local powertools.local

  7. Once the server is started, you can access the following sites: https://electronics.local:9002/yacceleratorstorefront https://powertools.local:9002/yb2bacceleratorstorefront

You can refer https://help.hybris.com/1811/hcd/8ab64fb886691014b9039f3f1fcb3cab.html and https://help.hybris.com/1811/hcd/8acc8a5a86691014a20781b3f738213e.html for more information.

geffchang
Active Contributor
0 Kudos

There is a b2c_b2b_acc recipe in the installer folder:

Recipe for a vanilla B2C Accelerator and a B2B Accelerator running on the same platform. In order to create the B2B Accelerator, b2bacceleratoraddon and commerceorgaddon are installed on a yb2bacceleratorstorefront extension which is generated with extgen using the yacceleratorstorefront template.

The storefronts also have Assisted Services, Customer Ticketing, Textfield Configurator and Commerce Organzation, Live Edit and Smart Edit addons.

The promotionengine is installed by default with coupons functionality available.

Required Configurations: * For features that require a Google API key (such as the Store Locator, which uses Google Maps), you need to set the “googleApiKey”. For information on generating your API Key: https://developers.google.com/maps/documentation/javascript/tutorial#api_key

You can install it using:

 cd %HYBRIS_HOME_DIR%\installer & install.bat -r b2c_b2b_acc setup & install.bat -r b2c_b2b_acc initialize 

... where HYBRIS_HOME_DIR is the folder where you extracted the Hybris zip file.

Srini22
Explorer
0 Kudos

The above approach doesn't really create a B2B2C scenario. it just installs two accelertors B2C and B2B in the same instance. The receipe above installs two storefronts. What is required is to have both b2b and b2c in one store front.