Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Services Namespace / DiscountCalculator Class / CalculateDiscount Method
The volume discount entity
The total quantity used to determine discount tier
The quantity of the item being discounted
The total value used to determine discount tier
The value of the item being discounted
In This Topic
    CalculateDiscount Method (DiscountCalculator)
    In This Topic
    Calculates the value of the discount for the given criteria
    Syntax

    Parameters

    discount
    The volume discount entity
    groupedQuantity
    The total quantity used to determine discount tier
    actualQuantity
    The quantity of the item being discounted
    groupedValue
    The total value used to determine discount tier
    actualValue
    The value of the item being discounted

    Return Value

    The value of the discount for the given criteria
    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