HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback


The content provider technology is a powerful integration method for extracting content from different sources and make it available on a website, providing an integrated user experience.

A content provider is an integration method used for example to extract content from external sources and make it available in Optimizely. In Optimizely Customized Commerce, the catalog content provider is used for building the integration between the Commerce catalog system and Optimizely Content Management System (CMS).

Classes in this topic are available in the following namespaces:

  • EPiServer.Commerce.Catalog

  • EPiServer.Commerce.Catalog.ContentTypes

  • EPiServer.Commerce.Catalog.Provider

In Customized Commerce, you can make product catalog data available inside the CMS Edit view. Editors can drag-and-drop product content into content areas of a page or a block. They can also edit and manage the catalog content through an interface that has the same look and feel and similar interaction patterns as the CMS Edit view.

The ECF Catalog system consists of the following parts:

  • **Catalog** – Can contain either NodeContent or EntryContent; the biggest element in the Catalog system.

  • **NodeContent** – Can be the child of a Catalog or another CatalogNode, and can be the parent of CatalogEntries or other CatalogNode(s).

  • **EntryContent** – Must be the child of a Catalog or CatalogNode, and cannot be the parent of anything else. You can move, copy, or link CatalogNode and CatalogEntry only within a Catalog.

The Customized Commerce content root integrates the ECF Catalog system, which is the root content of the CMS catalog system. The Commerce content root can only include Catalog; CatalogNode and CatalogEntry are not permitted.

Use standard Optimizely APIs to work with commerce content in CMS. The provider handles the mapping to and from ECF.

## Load a product



## Get children of a category



## Determine the catalog content type

In the ECF catalog system, Catalog/Node/Entry are stored in different tables, which means they might end up having the same ID. To resolve this, the Customized Commerce content provider reverses the two most significant bits (MSB) to determine which type of catalog content is being used.

When converting from a content ID to a content link, you add two more bits to the left of the ID. When converting from a content link back to a content ID, the two MSBs are cleared out. You can use the ReferenceConverter to perform these actions.



EntryContent can be one of four subclasses:

  • VariationContent

  • ProductContent

  • PackageContent

  • BundleContent

**Related blog post:** [External Catalog – Chapter 1: The Catalog Content Provider](🔗)