Storefront item in Commerce Control Panel has no Environment field


Description

The Storefront item template in the Commerce Control Panel might have no Environment field. The issue results in inability to set a specific environment for the storefront. In this case, the Commerce environment that the storefront is associated with falls back on the default environment set in the Sitecore.Commerce.Engine.Connect.config file.

Solution

To resolve the issue, you can specify the environment for the Storefront item as follows:

  1. Open the /sitecore/templates/CommerceConnect/Sitecore Commerce/Commerce Control Panel/Storefront Settings/Storefront/Storefront template and add the Environment field to it.
  2. Save the changes.
  3. Open your Storefront configuration item, for example, /sitecore/Commerce/Commerce Control Panel/Storefront Settings/Storefronts/Storefront, and assign a value to the Environment field, for example, "HabitatShops."
  4. Save the changes.
  5. Publish both items.
  6. Restart the Sitecore instance.