Table of Contents

Class CartItemPromotionCandidate

Namespace
CMS.Commerce
Assembly
CMS.Commerce.dll

Represents a promotion candidate that can be used for a cart item.

public class CartItemPromotionCandidate : IPromotionCandidate
Inheritance
object
CartItemPromotionCandidate
Implements
Extension Methods

Constructors

CartItemPromotionCandidate()

public CartItemPromotionCandidate()

Properties

DiscountedQuantity

Number of units of the line the promotion covers. If a catalog discount is also applied on the cart item, it doesn't apply to the covered units - only the remaining units of the line keep it.

public required decimal DiscountedQuantity { get; init; }

Property Value

decimal

ProductIdentifier

Cart item whose line the promotion reduces.

public required ProductIdentifier ProductIdentifier { get; init; }

Property Value

ProductIdentifier

PromotionTriggerItems

Items triggering the promotion.

public required IReadOnlyList<PromotionTriggerItem> PromotionTriggerItems { get; init; }

Property Value

IReadOnlyList<PromotionTriggerItem>

Remarks

Trigger items should not include the units that are already covered by the promotion - those are described by ProductIdentifier and DiscountedQuantity.

UnitPriceDiscountAmount

The amount taken off the unit price of each covered unit.

public required decimal UnitPriceDiscountAmount { get; init; }

Property Value

decimal