Click or drag to resize
ShoppingServiceValidateAddItemToCart Method
Validates adding an item to the shopping cart via AddItemToCart(ShoppingCartItemParameters). The method validates whether an item being added belongs to the same site as current shopping cart. Throws an exception when validation fails.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
protected virtual void ValidateAddItemToCart(
	ShoppingCartInfo cart,
	ShoppingCartItemParameters itemParameters
)

Parameters

cart
Type: CMS.EcommerceShoppingCartInfo
ShoppingCartInfo to add the item to.
itemParameters
Type: CMS.EcommerceShoppingCartItemParameters
Parameters specifying the item to be added.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when validation fails.
See Also