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

Class OrderGroupExtensions

Provides extensions for OrderGroup when for creating implementations of IOrderProvider<T>

Inheritance
System.Object
OrderGroupExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Order
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
public static class OrderGroupExtensions

Methods

CalculateTotals(OrderGroup, IOrderGroupCalculator, ReferenceConverter, IContentLoader, ICatalogSystem, IRelationRepository, LanguageResolver)

Calculates and updates the specified order group totals.

Declaration
public static void CalculateTotals(this OrderGroup orderGroup, IOrderGroupCalculator orderGroupCalculator, ReferenceConverter referenceConverter, IContentLoader contentLoader, ICatalogSystem catalogSystem, IRelationRepository relationRepository, LanguageResolver languageResolver)
Parameters
Type Name Description
OrderGroup orderGroup

The order group.

IOrderGroupCalculator orderGroupCalculator

The order group calculator.

ReferenceConverter referenceConverter

The reference converter.

EPiServer.IContentLoader contentLoader

The content loader.

ICatalogSystem catalogSystem

The catalog system.

IRelationRepository relationRepository

The relation repository.

EPiServer.Globalization.LanguageResolver languageResolver

The language resolver.

Save(OrderGroup, IOrderGroupCalculator, ReferenceConverter, IContentLoader, ICatalogSystem, IRelationRepository, LanguageResolver)

Saves the specified order group totals calculator.

Declaration
public static OrderReference Save(this OrderGroup orderGroup, IOrderGroupCalculator orderGroupCalculator, ReferenceConverter referenceConverter, IContentLoader contentLoader, ICatalogSystem catalogSystem, IRelationRepository relationRepository, LanguageResolver languageResolver)
Parameters
Type Name Description
OrderGroup orderGroup

The order group.

IOrderGroupCalculator orderGroupCalculator

The order group calculator.

ReferenceConverter referenceConverter

The reference converter.

EPiServer.IContentLoader contentLoader

The content loader.

ICatalogSystem catalogSystem

The catalog system.

IRelationRepository relationRepository

The relation repository.

EPiServer.Globalization.LanguageResolver languageResolver

The language resolver.

Returns
Type Description
OrderReference

Save(OrderGroup, IOrderGroupTotalsCalculator, ReferenceConverter, IContentLoader, ICatalogSystem, IRelationRepository)

Saves the specified order group totals calculator.

Declaration
[Obsolete("This method is no longer used, use overload with IOrderGroupCalculator instead. Will remain at least until May 2019.")]
public static OrderReference Save(this OrderGroup orderGroup, IOrderGroupTotalsCalculator orderGroupTotalsCalculator, ReferenceConverter referenceConverter, IContentLoader contentLoader, ICatalogSystem catalogSystem, IRelationRepository relationRepository)
Parameters
Type Name Description
OrderGroup orderGroup

The order group.

IOrderGroupTotalsCalculator orderGroupTotalsCalculator

The order group totals calculator.

ReferenceConverter referenceConverter

The reference converter.

EPiServer.IContentLoader contentLoader

The content loader.

ICatalogSystem catalogSystem

The catalog system.

IRelationRepository relationRepository

The relation repository.

Returns
Type Description
OrderReference

UpdateOrderFormTotals(OrderGroup, ReferenceConverter, IContentLoader, ICatalogSystem, IRelationRepository, LanguageResolver, OrderGroupTotals)

Updates order form totals from order group calculated totals.

Declaration
public static void UpdateOrderFormTotals(this OrderGroup orderGroup, ReferenceConverter referenceConverter, IContentLoader contentLoader, ICatalogSystem catalogSystem, IRelationRepository relationRepository, LanguageResolver languageResolver, OrderGroupTotals calculatedTotals)
Parameters
Type Name Description
OrderGroup orderGroup

The order group.

ReferenceConverter referenceConverter

The reference converter.

EPiServer.IContentLoader contentLoader

The content loader.

ICatalogSystem catalogSystem

The catalog system.

IRelationRepository relationRepository

The relation repository.

EPiServer.Globalization.LanguageResolver languageResolver

The language resolver

OrderGroupTotals calculatedTotals

The totals calculated from order group.