Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Orders Namespace / OrderItemCollection Class / TotalPriceById Method
Basket Item List
The item types to include in the total.
In This Topic
    TotalPriceById Method
    In This Topic
    Calculates the total price using the integer values for OrderItemType rather than the enum.
    Syntax
    [Extension()]
    public static decimal TotalPriceById( 
       IList<OrderItem> items,
       params int[] itemTypeIds
    )

    Parameters

    items
    Basket Item List
    itemTypeIds
    The item types to include in the total.

    Return Value

    The total price for the specified types
    Remarks
    This method is required for NVelocity support, since the NVelocity template cannot refer to the values through the enum.
    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