简体   繁体   中英

How can I set up Sitecore Commerce Demo Site (Sitecore.Demo.Retail) to exclude configuration errors?

When I set up the sitecore demo retail site (source - https://github.com/Sitecore/Sitecore.Demo.Retail ), I encountered with several problems related to Sitecore Commerce configurations and Sitecore Engine Configurations . I will divide this issues:

  1. I got the following error while running the install-commerce-server.ps1 script on step 5 (Commerce Server Configuration) 在此处输入图片说明

  2. I got error ' HTTP Error 502.5 - Process Failure ' by URL - http://habitat.commerceengine.dev.local:5000/api/ $metadata 在此处输入图片说明

  3. On 'reatil.dev.local' site I got error 'C ould not find property 'shopName' on object of type: Sitecore.Commerce.Engine.Connect.CommerceEngineConfiguration ', when I tried to go on any page with products 在此处输入图片说明

  4. I encountered with some errors of Sitecore Commerce Applications ( Merchandising Manager , Pricing & Promotions ) in Sitecore Experience Platform 在此处输入图片说明 在此处输入图片说明

However, I have resolved this issues and I hope that this info will be useful for set up of Sitecore Demo Retail site ( https://github.com/Sitecore/Sitecore.Demo.Retail ). I have repeated instuctions for install of Sitecore.Demo.Retail and fixed related issues:

  1. This issue had discussed in https://github.com/Sitecore/Sitecore.Demo.Retail/issues/81 . You need to check file 'Server2012_FeaturesRequired.txt' like it stated in issued-81. Then you must check file csconfig.xml (path for me - 'c:\\Projects\\Sitecore.Demo.Retail\\install'). I had bad SQL connection to MSSQL Server, which was default. Here example of working variant: 在此处输入图片说明 By another way you can run Commerce Server Configurator manually by ' CSConfig.exe /f ' (path for me - 'c:\\Program Files (x86)\\Commerce Server 11\\'). Then you can load xml-configuration and set and test SQL connection: 在此处输入图片说明

  2. This issue appeared on my environment, because i had wrong SQL connections (by default) in Commerce Engine project in Sitecore.Demo.Retail solution. You must to change all connections in the following files Global.json, Habitat.CommerceAuthoring-1.0.0.json, Habitat.CommerceShops-1.0.0.json. !!! Don't afraid to check appropriate configs in deployed solution 在此处输入图片说明

  3. This error is appeared due the wrong tags ( storefront ) in ' commerceEngineConfiguration ' tag. You need to remove this tags in Sitecore.Demo.Retail.config file. Working variant for example in showConfig.aspx: 在此处输入图片说明
  4. You should to check connection strings in file Z.Sitecore.Commerce.UX.Shared.config (path for me - c:\\websites\\habitat.dev.local\\Website\\App_Config\\Include). By default I had 'localhost:5000/...' 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM