---
schema_version: "1"
id: 1c0315de9d4e0e563a9409b90352c655767c27f0e156a1c0f14b95bbffa599f2
title: Prepare B2C Commerce
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/oci_impl_prepare_b2c.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.oci_impl_prepare_b2c.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 877e887840d9b6443c9fe9416aaf3d06452074d5428f757d395df84daa0a5e8d
description: First, get your B2C Commerce instance ready.
products:
  - Commerce
  - Omnichannel Inventory
release: "264"
---
# Prepare B2C Commerce

First, get your B2C Commerce instance ready.

1. If you’re setting up a new instance of B2C Commerce, install and configure it according to the documentation.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-inv_omnichannel_inventory-264-0-0-production-enus/43699e0f-a394-4b55-a1eb-072df389499a/images/icon_note.png)
    
    Note You activate the Omnichannel Inventory integration per B2C Commerce instance. So if you have sandbox, stage, and production instances, you follow the process for each one separately.
2. Create or import your sites and stores in B2C Commerce.
3. Create or import the B2C Commerce inventory lists to be paired with locations and location groups. Make sure that each ID in B2C Commerce matches the External Reference of the corresponding location or location group in Salesforce.
4. Assign the inventory lists to sites and stores.
5. In Business Manager, navigate to **Administration** | **Global Preferences** | **Retention Settings**. Set the Inventory Record Retention to a value greater than 0. This setting ensures that after the integration is activated, B2C Commerce deletes any unused legacy product inventory records. When the integration is active, Omnichannel Inventory handles all individual product inventory records.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-inv_omnichannel_inventory-264-0-0-production-enus/43699e0f-a394-4b55-a1eb-072df389499a/images/icon_note.png)
    
    Note If this setting is 0, then B2C Commerce doesn’t delete records that are no longer needed.
6. In Business Manager, navigate to **sitename** | **Merchant Tools** | **Site Preferences** | **Order**. In the Failed Orders Setting section, set Auto-Fail Orders to a value greater than 0. This setting automatically fails any unplaced orders in Created status after the specified number of minutes. Unplaced orders older than 30 days can cause availability discrepancies with Omnichannel Inventory.