IItemDiscount Interface |
Namespace: CMS.Ecommerce
public interface IItemDiscount
The IItemDiscount type exposes the following members.
Name | Description | |
---|---|---|
ItemDiscountDisplayName |
Discount display name.
| |
ItemDiscountedUnits |
Number of units the discount should be applied to
| |
ItemDiscountID |
Discount identifier.
| |
ItemDiscountIsFlat |
True - discount value is flat, False - discount value is relative.
| |
ItemDiscountIsGlobal |
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.
| |
ItemDiscountType |
Discount type.
| |
ItemDiscountValue |
Discount value.
|
Name | Description | |
---|---|---|
ApplyTogetherWith |
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.
| |
CalculateUnitDiscount |
Calculates discount based on basePrice for given shoppingcart item.
|