Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Marketing Namespace / IAffiliateRepository Interface / GetOrderCountForUser Method
Id of the affiliate to count orders for.
The Id of the user to count orders for.
If provided, the date on or after which orders will be counted.
In This Topic
    GetOrderCountForUser Method (IAffiliateRepository)
    In This Topic
    Get the total count of order for specified user associated with specifed affiliate
    Syntax

    Parameters

    affiliateId
    Id of the affiliate to count orders for.
    userId
    The Id of the user to count orders for.
    referralDate
    If provided, the date on or after which orders will be counted.

    Return Value

    Number of orders user has with specified affiliate
    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