ShoppingCartItemValidatorValidateUnitsInStock Method |
Validates that cart does not contain more items than are currently in stock.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax 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:
BooleanResult of validation
See Also