Monday, February 26, 2018

Sitecore Experience Commerce - Catalogs in the Sitecore Content Editor

After installing Sitecore Experience commerce 9 along with the Habitat storefront example, you may notice that under the commerce node, you have the option for which catalogs will display in the content editor. These items can then be referenced by a Storefront site, for associating a catalog with the site itself along with it's navigation.

Catalogs for Experience Commerce in the Sitecore content editor
The list of catalogs on the /sitecore/Commerce/Catalog Management/Catalogs item are controlled by a configuration setting. The Sitecore.Commerce.Engine.Connect.config file contains a setting called defaultEnvironment. It's this environment which is used to populate the list of available catalogs. Out of the box, this variable is set to "HabitatAuthoring".

If we open up commerce business tools and take a look at the merchandising tab, notice that Habitat_Master is present there (as it also appears in the content editor image above).

Experience Commerce business tools catalog list
Take notice of the environment drop down list which is set to HabitatAuthoring.

Experience Commerce environment
So, in a real world example it is recommended to create your own environment and configure Sitecore to use it. Here you can create catalogs (along with products, inventory, pricing and so on). Whilst also having it available inside the Sitecore content editor to hook into the front-end site.

No comments:

Post a Comment