Click or drag to resize
VolumeDiscountInfoProviderValidateVolumeDiscount Method
Returns True if volume 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: 11.0.0
Syntax
C#
public static bool ValidateVolumeDiscount(
	ShoppingCartItemInfo item,
	VolumeDiscountInfo discount
)

Parameters

item
Type: CMS.EcommerceShoppingCartItemInfo
Shopping cart item to which the volume discount should be applied
discount
Type: CMS.EcommerceVolumeDiscountInfo
Volume discount data

Return Value

Type: Boolean
See Also