A product's availability is calculated from its inventory and the
stock update mechanism.
Each product has a product record. If a product isn't orderable, it doesn't appear in search
results. For search availability ranking, the
product is ranked high or low based on its available to sell (ATS)
value.
Master Product and Variation Availability
Calculation
- A master product can't be ordered. Its availability status is the
availability of its variants.
- A master product can have an inventory record but having an inventory record is not a
best practice. Instead, assign inventory records to the variants,
because customers can order them.
- If at least one of
the variants of the master is orderable or in-stock, the master is
orderable or inStock. If you have enabled the
Show Orderable Products Only search preference (site or product level),
a master product can't be ordered directly.
Whether a master product is considered orderable controls whether it
shows up in the search results. Also, if you have sorting rules that
sort by availability, whether a master product is orderable controls
where it appears in the search results.
- If the master contains a bundle, availability must be determined
in a recursive manner.
- if none of the variants that the master represents in the current search result is
orderable, The master doesn't appear in search results
- For search availability ranking, the master is ranked high or low
based on the ATS of the variants it represents in the current search
result. For example, if it represents at least one variant with good
availability, it is ranked high.
Product Bundle Availability Calculation
- Products in a bundle can have inventory records.
- If one item in the product bundle is unavailable, the entire
bundle is unavailable.
- If a product bundle has an inventory record, Salesforce B2C Commerce uses the
inventory record in the calculation of the availability of the product
bundle.
- A bundle can have its own inventory record. The bundle inventory record enables you to
control availability of bundles independently from the availability of
the bundled products. If bundle availability is "perpetual", You don't need a bundle inventory record.
- If a bundle contains other bundles or masters, availability is
determined in a recursive manner.
- A bundle doesn't appear in search results if it isn't
orderable.
- For search availability ranking, the bundle is ranked high or low
based on the lowest ATS of all bundled products and the bundle itself
(if bundle has a record).
Product Set Availability Calculation
- A product set can't be ordered. Its availability status is the
availability of the set products.
- If a product set has an inventory record, the
record isn't used. A product set can't have an inventory record.
- If at least one of the
set products is orderable or in-stock, a product set is 'orderable' or 'in-stock'.
- If a product set contains bundles or masters, availability is
determined in a recursive manner
- If none of the set
products that the product set represents in the current search result
is orderable, a product set isn't shown in search results.
- For search availability ranking, the product set is ranked high or
low based on the ATS of the set product it represents in the current
search result. For example, if it represents at least one set product
with good availability, it is ranked high.