Class DiscountItems
The items that the discount will be applied to.
Inheritance
System.Object
DiscountItems
Namespace: EPiServer.Commerce.Marketing.Promotions
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0Syntax
public class DiscountItems : BlockData
Constructors
DiscountItems()
Declaration
public DiscountItems()
Properties
Items
The items that the reward will be applied to.
Declaration
[DistinctList]
[CLSCompliant(false)]
public virtual IList<ContentReference> Items { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<EPiServer.Core.ContentReference> |
MatchRecursive
Determines if a recursive logic should be used when identifying should have the reward applied to it.
Declaration
public virtual bool MatchRecursive { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
MaxQuantity
The maximum number of affected items
Declaration
public virtual int? MaxQuantity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Methods
SetDefaultValues(ContentType)
Sets the default values for this instance, which will include setting MatchRecursive to true.
Declaration
public override void SetDefaultValues(ContentType contentType)
Parameters
| Type | Name | Description |
|---|---|---|
| EPiServer.DataAbstraction.ContentType | contentType | The content type for this instance. |