Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / Product Class / GetUpsellProducts Method / GetUpsellProducts(Boolean,Boolean) Method
if true hidden and private associated Upsell Products will be excluded
Optional parameter to eager fetch related data for display
In This Topic
    GetUpsellProducts(Boolean,Boolean) Method
    In This Topic
    Gets a collection of Upsell Products associated with this Product
    Syntax
    public virtual IList<UpsellProduct> GetUpsellProducts( 
       bool excludeHidden,
       bool useEagerFetch
    )

    Parameters

    excludeHidden
    if true hidden and private associated Upsell Products will be excluded
    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