Click or drag to resize
DiscountInfoProviderValidateDiscount Method
Returns True if discount is valid and can be applied to the specified shopping cart item, otherwise returns False.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
public static bool ValidateDiscount(
	ShoppingCartItemInfo item,
	DiscountInfo discount
)

Parameters

item
Type: CMS.EcommerceShoppingCartItemInfo
Shopping cart item to which the discount should be applied
discount
Type: CMS.EcommerceDiscountInfo
Discount data

Return Value

Type: Boolean
See Also