Sitecore Commerce Journal – Removing Default Environments – Habitat and AdventureWorks

Sitecore Commerce when installed on top of Sitecore comes with a lot of default data which includes default catalogs like Habitat and Advetureworks, default storefront and environments. In a production environment or for client implementation these default data should be cleaned up so below are steps that should be followed.

Modify Config.json and Global.json

First we have to modify Config.json and Global.json file as below. We have to modify on all commerce roles which includes authoring, shops, minions and ops.

Path for Config.json – \<Commerce_Role>\wwwroot\config.json

Path for Global.json – \<Commerce_Role>\wwwroot\bootstrap\Global.json

Commerce Environment config.json global.json
Commerce Authoring “EnvironmentName”: “ClientAuthoring” EnvironmentList values = “ClientAuthoring” – (Remove rest of the values)
Commerce Minions “EnvironmentName”: “ClientMinions” EnvironmentList values = “ClientMinions” – (Remove rest of the values)
Commerce Ops “EnvironmentName”: “ClientAuthoring” EnvironmentList values = “ClientAuthoring” – (Remove rest of the values)
Commerce Shops “EnvironmentName”: “ClientShops” EnvironmentList values = “ClientShops” – (Remove rest of the values)

 

Modify Sitecore.Commerce.Engine.Connect.config

Path for Sitecore.Commerce.Engine.Connect.config –  \wwwroot\<Sitecore Instance\App_Config\Include\Y.Commerce.Engine\Sitecore.Commerce.Engine.Connect.config

On CM – Open above config and change <defaultEnvironment> value to “ClientAuthoring”

On CD – Open above config and change <defaultEnvironment> value to “ClientShops”

Modify config.json in Biztool instance

Go to Biztool instance and go to wwwroot\<biztool instance>\assets and open config.json

Change EnvironmentName to “ClientAuthoring”

Changes in Sitecore Content Editor

Items that needs to be removed as part of removing default Catalogs and Stores are –

  • /sitecore/content/Sitecore
  • /sitecore/media library/Images/Adventure Works
  • /sitecore/media library/Images/Habitat
  • /sitecore/media library/Project/Sitecore/Storefront

Leave a Reply

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