IItemDiscount MembersKentico 8.0 API Reference
The IItemDiscount type exposes the following members.
Methods

  NameDescription
Public methodApplyTogetherWith
Returns true if this discount is to be applied on the same base as the given discount. False indicates that discounts are to be applied one after another.
Public methodCalculateUnitDiscount
Calculates discount based on basePrice for given shoppingcart item.
Back to Top
Properties

  NameDescription
Public propertyItemDiscountDisplayName
Discount display name.
Public propertyItemDiscountedUnits
Number of units the discount should be applied to
Public propertyItemDiscountID
Discount identifier.
Public propertyItemDiscountIsFlat
True - discount value is flat, False - discount value is relative.
Public propertyItemDiscountIsGlobal
True - says that discounts value is set in global main currency, False - says that discounts value is set in site main currency. Takes effect only if discount value is flat.
Public propertyItemDiscountType
Discount type.
Public propertyItemDiscountValue
Discount value.
Back to Top
See Also