Inventory Display

The inventory display feature allows sellers to control the maximum stock displayed for a given category or base site, so customers can see the quantity of items available for purchase.

When inventory display is enabled on a composable storefront B2B site, it allows sellers to control the maximum stock displayed for a given category or base site. For example, if there are 200 units of an item in stock, and B2B Inventory Display for the site is set to 25, then "25 in stock" is displayed, regardless of the actual stock number. For more information, see B2B Inventory Display.

To make this functionality possible, changes were made to the following settings in composable storefront:

  • Previously, composable storefront only displayed either "in stock" or "out of stock". Composable storefront was updated to allow the display of actual stock numbers. This change works for any site (B2C or B2B).

  • It is then possible to set the inventory display field for B2B sites in the back end to display the maximum stock number.

When the composable storefront inventory display feature is enabled, customers can see the quantity of items that are available for purchase (the actual number can be affected by the SAP Commerce Cloud B2B Inventory Display feature). When the composable storefront feature is disabled, customers see only that an item is either "In Stock" or "Out of Stock".

Enabling Inventory Display in Composable Storefront

To enable inventory display, set the inventoryDisplay flag to true in app.module.ts, as shown in the following example:

provideConfig(<CmsConfig>{
  cmsComponents: {
    ProductAddToCartComponent: {
      data: {
        inventoryDisplay: true,
      },
    },
  },
}),

For more information, see Providing Global Configurations in Composable Storefront.

Enabling B2B Inventory Display Limits in the Back End Using Backoffice

If the inventory display feature is disabled in composable storefront, setting a value in the back end has no effect on the front end. In other words, composable storefront will display "in stock" or "out of stock" only.

For more information, see B2B Inventory Display.

Configuring

No special configuration is needed for this feature.

Extending

No special extensibility is available for this feature.