Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Services Namespace / ICouponCalculator Interface / CouponAppliesToItem Method
The given coupon
product to check for
Quantity to check for
In This Topic
    CouponAppliesToItem Method (ICouponCalculator)
    In This Topic
    Finds if a given coupon applies to the given item
    Syntax
    bool CouponAppliesToItem( 
       Coupon coupon,
       Product product,
       int quantity
    )

    Parameters

    coupon
    The given coupon
    product
    product to check for
    quantity
    Quantity to check for

    Return Value

    true if coupon applies, 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