Click or drag to resize
ShoppingCartInfoProviderValidateShoppingCart Method
Validates shopping cart and all its items. Returns an empty collection in case validation passes.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
public static IEnumerable<IValidationError> ValidateShoppingCart(
	ShoppingCartInfo cart
)

Parameters

cart
Type: CMS.EcommerceShoppingCartInfo
Shopping cart to validate.

Return Value

Type: IEnumerableIValidationError
Returns collection of validation errors that occured.
See Also