Click or drag to resize
DiscountCouponInfoProvider.ValidateDiscountCoupon Method
Returns True if discount coupon 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: 9.0.0
Syntax
C#
public static bool ValidateDiscountCoupon(
	ShoppingCartItemInfo item,
	DiscountCouponInfo discount
)

Parameters

item
Type: CMS.Ecommerce.ShoppingCartItemInfo
Shopping cart item to which the discount coupon should be applied
discount
Type: CMS.Ecommerce.DiscountCouponInfo
Discount coupon data

Return Value

Type: Boolean
See Also