Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Orders Namespace / Basket Class / HasProducts Method
In This Topic
    HasProducts Method
    In This Topic
    Gets a value indicating whether this basket contains any products.
    Syntax
    [Obsolete("Use LINQ instead: basket.Items.Count(item => item.OrderItemType == OrderItemType.Product) > 0")]
    public virtual bool HasProducts()

    Return Value

    True if there are products in the 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