Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Services.Checkout Namespace / BasketService Class / GetUnitDiscount Method
Item to find unit discount for
Basket containing the item
In This Topic
    GetUnitDiscount Method
    In This Topic
    Get the discount amount for a single quantity of the item.
    Syntax
    protected decimal GetUnitDiscount( 
       BasketItem item,
       Basket basket
    )

    Parameters

    item
    Item to find unit discount for
    basket
    Basket containing the item

    Return Value

    The discount amount applied to a single quantity of the item.
    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