Class EntryPromotion

Represents a content based entry promotion item.

Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public abstract class EntryPromotion : PromotionData
Examples
/// <summary>
/// Sample promotion that gives a percentage discount if a customer buys more than a given number of items from a selection of products.
/// </summary>
[ContentType]
public class PercentagePromotionSample : EntryPromotion
{
/// <summary>
/// Gets or sets the conditions that defines when the promotion is fulfilled or not.
/// </summary>
[PromotionRegion(PromotionRegionName.Condition)]
public virtual PurchaseQuantity Condition { get; set; }

/// <summary>
/// Gets or sets the percentage of discount applied when the promotion is fulfilled.
/// </summary>
[PromotionRegion(PromotionRegionName.Reward)]
public virtual int PercentageDiscount { get; set; }
}

Constructors

EntryPromotion()

Declaration
protected EntryPromotion()

Properties

DiscountType

Gets whether the promotion is for an order or individual line items or a shipment.

Declaration
public override DiscountType DiscountType { get; }
Property Value
Type Description
DiscountType
Overrides

Extension Methods