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: 8.2.23
Syntax
C#
public interface IItemDiscount

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