Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / IProductRepository Interface / FindProductsCount Method / FindProductsCount(String,Boolean,String,Int32,Int32,Int32,BitFieldState,Int32,Decimal,Decimal,Boolean,Boolean,Boolean,Boolean,Int32) Method
The name of the product
Search in description fields
The sku of the product
The category Id of the product
The manufacturer Id of the product. Use special value (-1) to search products without any manufacturers assigned.
The vendor Id of the product. Use special value (-1) to search products without any vendors assigned.
Whether the product is featured or not
The tax code Id of the product. Use special value (-1) to search products without any tax codes assigned.
Low product price
High product price
Digital Goods only
Gift Certificates only
Kits only
Subscription only
Assigned Group
In This Topic
    FindProductsCount(String,Boolean,String,Int32,Int32,Int32,BitFieldState,Int32,Decimal,Decimal,Boolean,Boolean,Boolean,Boolean,Int32) Method
    In This Topic
    Finds the number of products for given parameters
    Syntax

    Parameters

    name
    The name of the product
    searchDescription
    Search in description fields
    sku
    The sku of the product
    categoryId
    The category Id of the product
    manufacturerId
    The manufacturer Id of the product. Use special value (-1) to search products without any manufacturers assigned.
    vendorId
    The vendor Id of the product. Use special value (-1) to search products without any vendors assigned.
    featured
    Whether the product is featured or not
    taxCodeId
    The tax code Id of the product. Use special value (-1) to search products without any tax codes assigned.
    lowPrice
    Low product price
    highPrice
    High product price
    digitalGoodsOnly
    Digital Goods only
    giftCertificatesOnly
    Gift Certificates only
    kitsOnly
    Kits only
    subscriptionsOnly
    Subscription only
    groupId
    Assigned Group

    Return Value

    The number of products matching the given parameters
    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