Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Services Namespace / IOrderCalculator Interface / GetParentItem Method
Order item for which you need parent item
If true, this method gets the top level parent for this item. If false, only the immediate parent is returned.
In This Topic
    GetParentItem Method (IOrderCalculator)
    In This Topic
    Gets the parent item for this order item.
    Syntax

    Parameters

    orderItem
    Order item for which you need parent item
    recurse
    If true, this method gets the top level parent for this item. If false, only the immediate parent is returned.

    Return Value

    Returns the OrderItem instance for the parent item. If the current item has no parent, the current item is returned.
    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