Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Marketing Namespace / CouponCalculator Class / IsCouponValid Method / IsCouponValid(Basket,Coupon) Method
The basket to check
The coupon to check
In This Topic
    IsCouponValid(Basket,Coupon) Method
    In This Topic
    Checks if the given coupon is valid for the specified basket
    Syntax
    public virtual bool IsCouponValid( 
       Basket basket,
       Coupon coupon
    )

    Parameters

    basket
    The basket to check
    coupon
    The coupon to check

    Return Value

    true if coupon is valid for the specified basket, false otherwise
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also