Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Marketing Namespace / Coupon Class / AppliesToProduct Method
Id of product which needs to be tested agains current coupon
In This Topic
    AppliesToProduct Method
    In This Topic
    Checks if coupon can be applied on given product
    Syntax
    public virtual bool AppliesToProduct( 
       int productId
    )

    Parameters

    productId
    Id of product which needs to be tested agains current coupon

    Return Value

    True if coupon applies to product otherwise false
    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