Sitecore Commerce 8.2.1 Installation Guide for Reference Storefront-Part 6

Sitecore Commerce 8.2.1 Installation Guide for Reference Storefront-Part 6
Setup Commerce Server site and web services

Steps to Intialize commerce Server site



    • Open the Powershell in adminstrator mode

    • Execute the below command for setting the execution policy


    • Set-ExecutionPolicy Unrestricted

      and select y

    • Set execution policy

    • Navigate to your Sitecore website directory. For example:
      cd "C:\inetpub\wwwroot\storefront\Website"


    • Run the Initialize-CSSite command:




           C:\inetpub\wwwroot\storefront\Website> Initialize-CSSite


  • Initialize site


Steps to Initialize web services


  • Create the Commerce Server Web Services. Make sure the app pool identity for each Web Service is set to “.\CSFndRuntimeUser”
    a.Run the following command to create the Commerce Server Catalog Web Service:
    New-CSWebService -Name "CFSolutionStorefrontsite" -Resource Catalog -IISSite "CSServices" -AppPool "CSServices" -Identity 'CSFndRuntimeUser' -Password 'YourPassword'

    b.Run the following command to create the Commerce Server Profiles Web Service
    New-CSWebService -Name "CFSolutionStorefrontsite" -Resource Profiles -IISSite "CSServices" -AppPool "CSServices" -Identity 'CSFndRuntimeUser' -Password 'lostman@123'


  • Configure administrator permissions for the Catalog Web Service identity:
    Grant-CSCatalogWebServicePermissions –File "C:\CSServices\CFSolutionStorefrontsite_CatalogWebService\CatalogAuthorizationStore.xml" -Identity "CSFndRuntimeUser" -Role "Administrator"


  • Configure administrator permissions for the Profile Web Service identity:
    Grant-CSProfilesWebServicePermissions –File "C:\CSServices\CFSolutionStorefrontsite_ProfilesWebService\ProfilesAuthorizationStore.xml" -Identity "CSFndRuntimeUser" -Role "ProfileAdministrator"


  • Set the inventory subsystem to display out of stock SKUs by running the following command:
    Set-CSSiteResourceProperty -Name "CFSolutionStorefrontSite" –Resource "Inventory" -PropertyName "f_display_oos_skus" -PropertyValue $true


  • Check the Commerce Server web Service:

    • Navigate to IIS and Expand the CSServices and click on any of the webservice listed below it

    • Browse the web services.Make sure that both catalog and profile web services are running.
      Catalog web service
      Profile web service



  • Check your commmerce windows business tools are running

    • Launch your commerce server catalog and inventory schema manager

    • Click on the Edit Button and add your Catalog Webservice url which you verified in the above step
      InventorySchema

    • Launch your Commerce Server Catalog Manager

    • Click on Edit Button and your Catalog Web service url.
      Catalog manager




Update the Commerce Server Profile Schema

You must generate encryption keys for the CFSolutionStorefrontSite and add them to the Windows registry.To generate encryption keys for the Commerce Server Profile system and update the Profile schema:

  • Run the command prompt as administrator

  • Run the ProfileKeyManager.exe to generate encryption keys:

    1. Navigate to  cd “C:\Program Files (x86)\Commerce Server 11\Tools” and run
      .\ProfileKeyManager.exe /kn /o "c:\profileEncryptionKeys.xml" /f

         Note: By default, the ProfileKeyManager.exe file is installed under C:\Program Files (x86)\Commerce Server            11\Tools.

    2. Add the encryption keys to the Windows registry:
      .\ProfileKeyManager.exe /ke /kf "c:\profileEncryptionKeys.xml" /reg HKEY_LOCAL_MACHINE\SOFTWARE\CommerceServer\Encryption\Keys\CFSolutionStorefrontSite /f




  • Update the Commerce Server Profile schema by deploying the Commerce Storefront Profile Database DAC package, using the following command:

    1. Navigate to cd "C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin"
      Note: Adjust the path to the sqlpackage.exe tool (and the target server) if different from the path shown above.

    2. Execute the below command
      .\SqlPackage.exe" /Action:Publish /SourceFile:" D:\Commerce\Sitecore.Commerce.8.2.1_U2_1.2.62\Database\Profiles\Commerce.Storefront.ProfileDatabase.dacpac" /TargetDatabaseName:CFSolutionStorefrontSite_profiles /TargetServerName:"127.0.0.1"




  • As we received an error message while installing the Sitecore.Reference.Storefront.Powered.by.SitecoreCommerce.10.0.xxx.update package, reinstall the update package


Continue Reading https://xchangesitecore.com/sitecore-commerce-8-2-1-installation-guide-for-reference-storefront-part-6/ Vikash Raaj

Comments

Popular posts from this blog

Razl for Sitecore

Sitecore Rocks web Service 403 Forbidden error

Multi Single Line Text Custom Field Plugin