Class PurchaseAmount

A condition for PromotionDatas where the user needs to spend at least a Money in this list, which has the same currency.

Inheritance
System.Object
PurchaseAmount
Namespace: EPiServer.Commerce.Marketing.Promotions
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public class PurchaseAmount : ConditionBlock

Constructors

PurchaseAmount()

Declaration
public PurchaseAmount()

Properties

Amounts

The promotion will be applied if the money amount spent in the cart is equal or higher than the amount of one Money in this list, which has the same currency.

Declaration
public virtual IList<Money> Amounts { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<Money>
Remarks

The default value of currency amounts set to zero.

Methods

SetDefaultValues(ContentType)

Sets the default values for this instance, which will include setting PartiallyFulfilledThreshold to 95 percent and the redemption limits per order is set to 1.

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

The content type for this instance.

Remarks

It must be from 0 to 1. Its default value set to 0.95

Extension Methods