Model 4 - Salesforce B2C Commerce Calculates ATS Values
Model 4 is appropriate when you want to update B2C Commerce's inventory status. You can update the inventory status once per day or less frequently. B2C Commerce can warn your customers when products are out of stock, on backorder, or pre-order.
In this model, all products have inventory records. B2C Commerce maintains stock levels for product display, cart display, and checkout. The merchant keeps inventory data reasonably fresh, perhaps with a daily batch feed.
If the following conditions exist:
- There is an inventory list that is periodically refreshed.
-
ProductInventoryList.DefaultInStock = false
There are product inventory records for all products. The new and modified records have these values:
-
ProductInventoryRecord.allocation = {units}
-
ProductInventoryList.perpetual = false
Optionally, set these inventory record fields to
support backorder. These record fields affect the calculation of
ProductInventoryRecord.ATS
.
-
ProductInventoryList.backorderable = true
-
ProductInventoryList.preorderBackorderAllocation = {units}
-
ProductInventoryList.inStockDate= {date}
Optionally, set these inventory record fields to
support pre-order. These record fields affect the calculation of
ProductInventoryRecord.ATS
.
-
ProductInventoryList.preorderable = true
-
ProductInventoryList.preorderBackorderAllocation {units}
-
ProductInventoryList.inStockDate = {date}
The result is that product inventory records indicate their availability. You can presume that the calculated ATS values are close to actual. The storefront behavior is as follows.
Status | Behavior |
---|---|
Available | The product record appears. The product can be ordered. |
Backordered | The product record appears. The product can be ordered. The backorder date appears in the shopping cart. |
Pre-ordered | The product record appears. The product can be ordered. The pre-order date appears in the shopping cart. |
Not Available | The product record appears with a no longer available message. The product can't be ordered. |