Configure your existing Sitecore site to use
Sitecore Commerce 8.0 powered by Commerce Server and Commerce Server
11.2 data
providers.
Complete the following prerequisites:
- Install Sitecore
- Install Commerce Server
- Sitecore Commerce 8.0 powered by Commerce Server and Commerce Server
11.2
acts as a data provider for your site and does not dictate what techniques or
technologies you use to build out your presentation components. If you prefer
MVC, WebForms, or Xslt, you can follow the normal Sitecore development practices
to develop your look and feel.
Note: By default the scripts will create some local user accounts for app pools and
two websites in IIS called CSSitecore and CSServices to hold the Sitecore site and
Commerce Server web services. If are ok with this then you can just run the scripts
as is, otherwise you will need to update the environment.xml file to match you
desired settings.
Note: During the deployment of the update packages, the
system will issue warnings and errors in deployment summary. It is safe to disregard
this information
At your development machine:
-
Download Sitecore Commerce Connect from the Sitecore Developers Portal.
-
Download Sitecore Commerce Server Connect, Sitecore Commerce Server Connect
Sample MVC site, and Sitecore Merchandising Manager from Sitecore Developers Portal.
-
Download Deploy.zip.
-
Extract Deploy.zip to a temporary location.
-
Ensure your site variables are correct. Open and edit the
deployment\environment.xml file and edit the following
sections:
<Configuration identity="Domain.Dev.Existing">
<Configuration identity="Domain.Dev.Merge">
<Configuration identity="Domain.Dev.SC">
-
Ensure that the instanceName variable is set as your
Sitecore instance name, and the installDir variable
is correct. In the following example, the installDir
variable is pointing to
c:\inetpub\SitecoreInstance.
<Variables>
<Variable identity="instanceName" value="SitecoreInstance" description="" />
<Variable identity="installDir" value="$(Join-Path -Path $INETPUB_DIRECTORY -ChildPath $instanceName)" description="" />
</Variables>
In the following example the installDir variable
is changed to c:\inetpub\wwwroot. However, you
can also specify the absolute path to your Sitecore solution as a
value of the installDir variable.
<Variable identity="installDir" value="$(Join-Path -Path $INETPUB_DIRECTORY\wwwroot -ChildPath $instanceName)" description="" />
-
Ensure that the SitecorePort variable is set
correctly. Use IIS Manager to determine your site settings.
<Variable identity="SitecorePort" value="7655" description="" />
-
Ensure that the scHostHeaderName variable is set
correctly. Use IIS Manager to determine your site settings.
<Variable identity="scHostHeaderName" value="SitecoreHost" description="" />
-
Ensure that the MONGO_EXE_PATH variable is set correctly. This variable
indicates the root path of the Mongo DB installation. The script,
Deploy-Mongo-Clean.ps1 uses this variable to locate the Mongo DB
executable to use for dropping the analytics databases.
<Variable identity="MONGO_EXE_PATH" value="C:\MongoDB" description="MongoDB Installation path" />
-
Set permissions to allow Sitecore Commerce 8.0 powered by Commerce Server and Commerce Server
11.2
to integrate with Sitecore
and unpup the sample site.
-
Open a Powershell window.
-
Change the execution policy.
Enter Set-ExecutionPolicy Unrestricted and
select Y.
-
Browse in the Powershell window to the location of the
Deploy.zip extraction folder.
-
Run the Deploy-UnPup.ps1 from the
Deploy.zip deployment folder.
-
Run the Deploy-Base-SC-Existing.ps1 from
the Deploy.zip deployment folder.
-
Install Commerce Connect.
-
At the Sitecore desktop, select .
-
Use the wizard to upload Sitecore Commerce
Connect.zip and follow all of the instructions to
install. If you are prompted to overwrite an existing item then you
should accept this option.
-
Install the Sitecore Commerce 8.0 powered by Commerce Server and Commerce Server
11.2
update packages.
-
Within a browser, browse to http://<your Sitecore
site>/sitecore/admin/UpdateInstallationWizard.aspx
.
-
Import the Commerce Server plug-in update package named
Sitecore Commerce Server Connect.update with
the Installation wizard.
-
Import the runtime site package named
MVCSite.update with the Installation
wizard.
-
Perform an IISReset.
-
Run the merge script.
Using powershell, run Deploy-Base-SC-Merge.ps1 from the
deploy.zip deployment folder to merge the config files.
Note: There is a known possible issue when installing Sitecore Commerce.
Depending on your configuration, the maximum default file size for ASP.NET
web.config may be exceeded. The workaround is to create a key:
-
In REGEDIT, navigate to HKLM
\Software\Microsoft\InetStp.
-
Add a new Key named Configuration.
-
Add a new DWORD for MaxWebConfigFileSizeInKB, and set
the value in KB.
-
Restart the app pool.
-
Update Windows performance groups.
Add the Sitecore application pool user into the two windows groups named
Performance Log Users and Performance Monitor
Users.
-
Change the Commerce Server site name on the
siteName attribute.
Note: You can skip this step if your site is called
SolutionStorefrontSite.
In the
Sitecore
web.config file, edit the
Sitecore Commerce 8.0 powered by Commerce Server and Commerce Server
11.2
site name on the siteName attribute of the application element to match the name
of the
Commerce Server
site.
<CommerceServer> <application siteName="YourCommerceSitename" debugLevel="Production" />
-
Publish the site to the Web.
-
Launch Sitecore.
-
Open the Content Editor.
-
Navigate to the root of the content tree, and then click
Publish.
-
Index the site.
-
Open the Index manager.
Click
-
Start the rebuild.
Check sitecore_master_index and the
sitecore_web_index , then click
Rebuild.
You are now setup to start developing and interacting with Commerce Server through
Sitecore.