Click or drag to resize
ShoppingCartItemValidatorValidateUnitsInStock Method
Validates that cart does not contain more items than are currently in stock.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
protected virtual bool ValidateUnitsInStock(
	SKUInfo sku,
	int inventoryUnits
)

Parameters

sku
Type: CMS.EcommerceSKUInfo
SKU to be validated.
inventoryUnits
Type: SystemInt32
Units currently in inventory

Return Value

Type: Boolean
Result of validation
See Also