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: 12.0.0
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