Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / Product Class / GetUpsellProducts Method / GetUpsellProducts(Basket,Boolean) Method
A basket; the return list will not contain any products already in the basket.
Optional parameter to eager fetch related data for display
In This Topic
    GetUpsellProducts(Basket,Boolean) Method
    In This Topic
    Gets a collection of Upsell Products associated with this Product
    Syntax
    public virtual IList<UpsellProduct> GetUpsellProducts( 
       Basket basketToExclude,
       bool useEagerFetch
    )

    Parameters

    basketToExclude
    A basket; the return list will not contain any products already in the basket.
    useEagerFetch
    Optional parameter to eager fetch related data for display

    Return Value

    A list of Upsell Products
    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