How-to set up SCCSMD(Sitecore Commerce powered by Microsoft Dynamics) Dev environment

We will be using minimal security configuration. This is only for developer machine, do not use it for production environment setup.

Important: Before installing software, make sure you apply any Windows critical updates to the operating system.
Important: You must have administrative privileges on the computer where you are installing the software.

Prerequisites

  • Normal minimal Sitecore installation requirements
    • IIS
    • SQL Server
  • MongoDB
  • Dynamics AX Retail instance

Dependencies

  • Sitecore 8.1 rev. 160302(update -2)
  • CommerceServer-11.3.507.0
  • Sitecore Commerce Connect 8.1 rev. 160202
  • Sitecore Commerce Server Connect 8.1 rev. 8.1.539.0
  • Sitecore Mechandising Manager 8.1 rev. 8.1.543.0
  • Sitecore Commerce DynamicsIntegration Connect 8.1.399.0
  • Sitecore Commerce DynamicsIntegration TransactionService 8.1.399.0
  • Sitecore Commerce Routing Framework 8.1.399.0
  • Sitecore Commerce DynamicsIntegration Routing 8.1.399.0

https://dev.sitecore.net/Downloads/Sitecore_Commerce_powered_by_Microsoft_Dynamics/81/Sitecore_Commerce_81_powered_by_Microsoft_Dynamics_%C2%AE.aspx

Step 1 – Install Sitecore

  • Create a sql server login and ensure that it has sysadmin rights.
  • I personally used Sitecore installer exe to install Sitecore, but Sitecore preferred way of installation is using SIM(Sitecore instance manager) – another blog on the way :-).
  • Its time for increasing max size of web.config.
    • Open regedit with administrator priviledge.
    • Change registry entry – HKEY_LOCAL_MACHINE\Software\Microsoft\InetStp\Configuration. Make sure the MaxWebConfigFileSizeInKB value in decimal is 500. This allows 500 KB web entries in config file.

Step 2: Install Commerce Server

Follow steps for installation in following document:

http://commercesdn.sitecore.net/SCpbCS81/SitecoreCommerceInstallationGuide/en-us/index.html#Concepts/c_QuickInstallFundamentals.html

  • Install Commerce Server by running the installer. Follow wizard steps. Use windows administrator user for this. Note: I did not set up staging service for CS on dev box.
  • After the installation is complete, create a folder csservices under C:\inetpub.
  • Add entries in host file:
    • 127.0.0.1 csservice.commerce.local
      127.0.0.1 storefront.commerce.local
  • Create a website in IIS, call it csservice.commerce.local, point it to C:\inetpub\csservices.
  • Create self signed certificate for csservice. Follow steps in this article.
  • Add ssl binding to csservice.commerce.local and assign self signed certificate created above.
  • Add 2 more bindings for store in IIS sitecore website:
    • storefront.commerce.local:80
    • storefront.commerce.local:443 – assign self signed certificate created above.

 

Step3: Install Commerce Server site 

Step 4: Install Sitecore Connectors

  • Install Sitecore Commerce Connect by using install package wizard.
  • Run UpdateInstallationWizard for
    • Sitecore commerce server connect 8.1 rev 8.1.539.0
    • Sitecore Commerce DynamicsIntegration Connect 8.1.399.0
    • Sitecore Commerce DynamicsIntegration Transaction Service
      • Navigate to IIS, under sitecore site you just created, you will see TransactionService folder, convert it to web application
    • Sitecore Commerce Routing Framework
    • Sitecore Commerce DynamicsIntegration Routing
    • Sitecore Merchandising Manager 8.1 rev. 8.1.543.0.update
  • Merge Web.config with files in website\mergeFiles.

Step 5: Set up Storefront site

  • Run updateinstallwizard for in Sitecore.Reference.Storefront.for.SCpbMD.8.1.479.0\SCpbMD\Packages
  • Download Contoso Image file package and run install.
  • In order to view the catalog in sitecore, without connecting to ax, import catalog from (Sitecore.Reference.Storefront.for.SCpbMD.8.1.479.0\SCpbMD\Database\Catalog). – this is only for testing purpose, we will establish the connection with AX by setting up Transaction service and routing service connection strings.
  • I had to configure few more things to make the site work.
    • Reference.Storefront.config under C:\inetpub\wwwroot\sc81commerce81\Website\App_Config\Include\Reference.Storefront. Update site hostname to be same as your local( hostName=”storefront.commerce.local”)
    • Update  endpoint addresses to local site in DynamicsRetail.Connectors.Services under C:\inetpub\wwwroot\sc81commerce81\Website\App_Config

 

I will cover setting up Transaction service and Routing console application in my next blog.

How-to set up SCCSMD(Sitecore Commerce powered by Microsoft Dynamics) Dev environment
Tagged on:             

Leave a Reply

Your email address will not be published. Required fields are marked *