Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class BuyOneGetOneDiscount

This promotion type will be applied when RequiredQuantity number of SKUs, that are part of the entries belonging to the Items, are in the cart. The Items will be applied to the order as the gifts.

Inheritance
System.Object
BuyOneGetOneDiscount
Namespace: EPiServer.Commerce.Marketing.Promotions
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0
Syntax
public class BuyOneGetOneDiscount : EntryPromotion

Constructors

BuyOneGetOneDiscount()

Declaration
public BuyOneGetOneDiscount()

Properties

Condition

Declaration
[PromotionRegion("Condition")]
public virtual FixedOnePurchaseQuantity Condition { get; set; }
Property Value
Type Description
FixedOnePurchaseQuantity

DiscountTarget

Declaration
[PromotionRegion("Discount")]
public virtual BuyOneGetOneDiscountItems DiscountTarget { get; set; }
Property Value
Type Description
BuyOneGetOneDiscountItems

Methods

SetDefaultValues(ContentType)

Declaration
public override void SetDefaultValues(ContentType contentType)
Parameters
Type Name Description
EPiServer.DataAbstraction.ContentType contentType
Overrides

Extension Methods