---
title: Commerce setup
related:
  - https://docs.kentico.com/documentation/developers-and-admins/digital-commerce-setup.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

> **License:** Advanced license required.
>
> Features described on this page require the Xperience by Kentico **Advanced** license tier.

The digital commerce feature helps you build simple online stores where you can sell physical or digital products. It gives you the basic tools, data structure, and actions you need to manage your shop and process orders. You can use it to set up product listings, handle purchases, and store customer data. Custom development is needed to fully set up and customize your shop, but this feature takes care of the main building blocks so you don’t have to start from scratch.

To use the commerce features of Xperience by Kentico:

1. [Enable](#enable-digital-commerce) the commerce feature.
2. [Prepare a product catalog](https://docs.kentico.com/documentation/developers-and-admins/digital-commerce-setup/model-product-catalog.md) and fill it with products.
   - You need to implement stock management to track product availability. You can do this by [modeling the product stock](https://docs.kentico.com/documentation/developers-and-admins/digital-commerce-setup/model-product-catalog/model-product-stock.md) as a custom module.
3. Implement [shipping and payment methods](https://docs.kentico.com/documentation/developers-and-admins/digital-commerce-setup/shipping-and-payment-methods.md).
4. Implement the [shopping cart and checkout process](https://docs.kentico.com/documentation/developers-and-admins/digital-commerce-setup/checkout-process.md).
   - The shopping cart and checkout interfaces need to be implemented as custom pages or widgets.
5. Configure [order statuses](https://docs.kentico.com/documentation/developers-and-admins/digital-commerce-setup/configure-order-statuses.md) and set up notifications for order status changes.
6. Display the product catalog on your storefront (your public-facing interface where customers browse and purchase products).
   - Depending on your product catalog model, you can either directly display product pages (if using pages to store products) or create pages for each product using custom code (if using the content hub to store products).

## Enable digital commerce

To enable the commerce feature:

1. Open your Xperience project in Visual Studio and edit the _Program.cs_ file.

2. [Enable](https://docs.kentico.com/documentation/developers-and-admins/development/website-development-basics/configure-new-projects/enable-application-features.md) the commerce feature in the application startup:

   ```csharp title="Program.cs"
   using Microsoft.AspNetCore.Builder;

   using Kentico.Web.Mvc;
   using Kentico.Xperience.Commerce;

   // ...

   WebApplicationBuilder builder = WebApplication.CreateBuilder(args);

   // ...

   builder.Services.AddKentico(features =>
   {
       // Enables digital commerce
       features.UseCommerce();
   });
   ```

3. Register the required commerce service implementations. You must at minimum implement and register a [product data retriever](https://docs.kentico.com/documentation/developers-and-admins/digital-commerce-setup/price-calculation/implementation.md#implement-product-data-retrieval) and a [tax calculation step](https://docs.kentico.com/documentation/developers-and-admins/digital-commerce-setup/price-calculation/implementation.md#implement-tax-calculation) for the [price calculation service](https://docs.kentico.com/documentation/developers-and-admins/digital-commerce-setup/price-calculation.md) to work.
