HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In


This topic describes how to use the PopulateAvailabilities pipeline.

100PopulateAvailabilitiesPopulates result.PopulateAvailabilitiesDtos. If inventory not showed on site or product is not active or product can be configure then returns NoMessage type. If CustomAvailabilityMessage is not blank then returns Available type. If product.TrackInventory is false and product is not discontinued then returns NoMessage type. If AvailableQty more than low stock level then returns Available type. If AvailableQty less than low stock level but greater than 0 then returns LowStock type. Otherwise returns OutOfStock type. Then goes through and does the same calculations for ProductUnitOfMeasures.

What’s Next