Click or drag to resize
AddItemToCartValidator Class
Performs validation of an item to be added to a shopping cart.
Inheritance Hierarchy
SystemObject
  CMS.EcommerceAddItemToCartValidator

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
public class AddItemToCartValidator : IValidator

The AddItemToCartValidator type exposes the following members.

Constructors
  NameDescription
Public methodAddItemToCartValidator
Initializes a new instance of the AddItemToCartValidator class for given cart and itemParameters.
Top
Properties
  NameDescription
Public propertyCart
Gets shopping cart this validator was initialized for.
Public propertyErrors
Gets an enumeration of validation errors associated with this validator. An empty enumeration is returned if validation succeeded.
Public propertyIsValid
Gets a value indicating whether validation succeeded.
Public propertyItemParameters
Gets item parameters this validator was initialized for.
Protected propertySKUInfoProvider
Gets the provider for SKUInfo management.
Top
Methods
  NameDescription
Public methodValidate
Validates the ItemParameters specify an SKU from the same site as Cart is.
Top
Extension Methods
  NameDescription
Public Extension MethodContainsTValidatorError
Returns a value indicating whether a validation error of type TValidatorError is in Errors.
(Defined by IValidatorExtensions.)
Public Extension MethodFirstErrorType
Returns Type of the first validation error in Errors.
(Defined by IValidatorExtensions.)
Public Extension MethodGetErrorMessages
Returns collection of localized error messages that occurred during validation.
(Defined by IValidatorExtensions.)
Top
See Also