London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class EntryPromotion

Represents a content based entry promotion item.

Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.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