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 BuyOneGetOneDiscountItems

The items that the discount will be applied to.

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

Constructors

BuyOneGetOneDiscountItems()

Declaration
public BuyOneGetOneDiscountItems()

Properties

FreeQuantity

The reward values that should be applied.

Declaration
public virtual int FreeQuantity { get; set; }
Property Value
Type Description
System.Int32

IsCustomerGetsSame

Rewards the same SKUs as customer purchased.

Declaration
public virtual bool IsCustomerGetsSame { get; set; }
Property Value
Type Description
System.Boolean

Items

Declaration
[DistinctList]
public virtual IList<ContentReference> Items { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<EPiServer.Core.ContentReference>

Methods

SetDefaultValues(ContentType)

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