Try our conversational search powered by Generative AI!

Interface IOrderFormCalculator

Calculates totals on the order form.

Namespace: EPiServer.Commerce.Order
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public interface IOrderFormCalculator

Methods

GetDiscountTotal(IOrderForm, Currency)

Gets the order form discount total.

Declaration
Money GetDiscountTotal(IOrderForm orderForm, Currency currency)
Parameters
Type Name Description
IOrderForm orderForm

The order form.

Currency currency

The currency.

Returns
Type Description
Money

GetHandlingTotal(IOrderForm, Currency)

Gets the handling total for the order form

Declaration
Money GetHandlingTotal(IOrderForm orderForm, Currency currency)
Parameters
Type Name Description
IOrderForm orderForm

The order form

Currency currency

The currency to be used in the calculation

Returns
Type Description
Money

The handling total for the order form.

Examples

GetOrderDiscountTotal(IOrderForm, Currency)

Gets the order form discount price

Declaration
Money GetOrderDiscountTotal(IOrderForm orderForm, Currency currency)
Parameters
Type Name Description
IOrderForm orderForm

The order form.

Currency currency

The currency.

Returns
Type Description
Money

The order form discount price

GetSubTotal(IOrderForm, Currency)

Gets the total of extended prices for all line items in the order form.

Declaration
Money GetSubTotal(IOrderForm orderForm, Currency currency)
Parameters
Type Name Description
IOrderForm orderForm

The order form

Currency currency

The currency to be used in the calculation

Returns
Type Description
Money

The sub total for the order form.

Examples

GetTotal(IOrderForm, IMarket, Currency)

Gets the total for the order form

Declaration
Money GetTotal(IOrderForm orderForm, IMarket market, Currency currency)
Parameters
Type Name Description
IOrderForm orderForm

The order form

IMarket market

The market to be used in the calculation.

Currency currency

The currency to be used in the calculation

Returns
Type Description
Money

The total for the order form.

Examples