Configuration

There is a minor amount of configuration to the web.config file that is required to connect your Sitecore site with a Commerce Server site.

  1. Update the \App_Config\CommerceServer.Core.config.
  2. Register the Commerce Server Profile Provider.
  3. Add the caching configuration to the web.config.
  4. Choose Lucene or Solr.

The \Website\App_Config\CommerceServer.Core.config file is the recommended place to store your Commerce Server configurations. The Commerce Server Connect package includes a \Website\App_Config\CommerceServer.Core.config.example file to use as a starting point. In the CommerceServer.Core.config file, you will need to add the name of your Commerce Server site at Configuration/CommerceServer/Application[@siteName], and remove the configurations for any subsystems you are not using. For example, SCpbMD only uses the Catalog subsystem, so you could remove the Orders, Profiles,and other similar sections.

The \Website\MergeFiles\Merge.CommerceServer.config file contains all of the additional entries that you need to add to the web.config. Specifically it contains entries for registering the Commerce Server Profile Provider with the ASP.NET membership framework and the Enterprise Library Caching block. If you are not using the Commerce Server Profile sub system, then you do not need to merge in the profile provider piece. For example, if you are working with SCpbMD.

Previous releases of SCpbCS required you to add http modules in the web.config. This version provides Sitecore pipeline processor versions of these http modules. These pipeline processors are registered in the CommerceServer.config, inside the initialize, preprocessRequest, and httpRequestEnd pipelines. Because these processors are part of the Sitecore configuration framework, you are able to patch out pipeline processors for any subsystems you do not use. For example, if you are using SCpbMD, you would patch out all of the processors except for the catalog processor.

With these configuration changes, the Sitecore site will communicate with Commerce Server at start up. Before you start using your site, be aware of the following information about the Commerce Server Catalog integration:

If you are configuring an Azure Cloud Service or a web front end, you will want to remove the Commerce Server Staging ( Feature.MS.CS.CsStaging) and Profile Schema Manager (Feature.MS.CS.Misc) features from the list of features that are configured by the Commerce Server Configuration Wizard. Neither of these features are required on a web front end, and removing them will reduce the amount of additional configuration you need to perform.