November Happy Hour will be moved to Thursday December 5th.

Class LegacyCalculateDiscountsActivity

This is an activity that calculates and applies discounts to a particular order group. This can be used out of the box or as a basis for a different promotion engine.

Inheritance
System.Object
LegacyCalculateDiscountsActivity
Namespace: Mediachase.Commerce.Workflow.Activities
Assembly: Mediachase.Commerce.Workflow.dll
Version: 12.17.2
Syntax
[Obsolete("Use promotion system in EPiServer.Commerce.Marketing instead. Will be removed in a future major release, but not earlier than August 2018.")]
public class LegacyCalculateDiscountsActivity : OrderGroupActivityBase

Constructors

LegacyCalculateDiscountsActivity()

Declaration
public LegacyCalculateDiscountsActivity()

Methods

Execute(ActivityExecutionContext)

Executes the specified execution context.

Declaration
protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
Parameters
Type Name Description
ActivityExecutionContext executionContext

The execution context.

Returns
Type Description
ActivityExecutionStatus
Overrides

GetGiftPromotionName(PromotionItemRecord)

Gets the name of the gift promotion.

Declaration
public string GetGiftPromotionName(PromotionItemRecord promoRecord)
Parameters
Type Name Description
PromotionItemRecord promoRecord

The promo record.

Returns
Type Description
System.String

IsGiftLineItem(LineItem)

Determines whether [is gift line item] [the specified line item].

Declaration
public bool IsGiftLineItem(LineItem lineItem)
Parameters
Type Name Description
LineItem lineItem

The line item.

Returns
Type Description
System.Boolean

true if [is gift line item] [the specified line item]; otherwise, false.