Manage Stock Levels for your Products and display them to your buyers
  • 17 Aug 2022
  • 1 Minute to read
  • Dark
    Light

Manage Stock Levels for your Products and display them to your buyers

  • Dark
    Light

Article summary

Available from version 1.31

In order to provide stock level information to the customers there are two options.

  1. Enter remaining stock level on the product (Product2) associated to the web product (Simple), web product option (Configurable) or web product option item (Grouped).
  2. Add your own extension by implementing the IStockLevelProvider interface.

If stock level quantities are provided the customer will see three different types of stock level information

  • On stock (green)
  • Limited (orange), below threshold
  • No stock (gray)

How to configure?

  1. Enter stock level in the 'Stock Level' field on the 'Product2' object. Either browse to the record through the specific web product, option or option item or directly in the Product2 list.
  2. Go to Salesforce setup -> Custom settings -> Welisa Commerce System Setting -> Managed.
  3. Click 'Edit' and set the 'Default Minimal Stock Level' field with the value which, if the product stock will drop below that value, indicates a 'limited' stock.

If stock level field on product is empty no stock level information is displayed