Click or drag to resize
IItemDiscount Interface
General interface used for implementing and calculating discount of the shopping cart item.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
public interface IItemDiscount

The IItemDiscount type exposes the following members.

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.
Top
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.
Top
See Also