Table of Contents

Class EcommerceViewModelTemplateHelperExtensions

Namespace
Dynamicweb.Ecommerce.Frontend
Assembly
Dynamicweb.Ecommerce.dll

Provides extension methods for view model templates through ViewModelTemplateHelper.

public static class EcommerceViewModelTemplateHelperExtensions
Inheritance
EcommerceViewModelTemplateHelperExtensions
Inherited Members

Methods

GetCountries(ViewModelTemplateHelper)

Retrieves a collection of countries as CountryViewModel objects.

public static ICollection<CountryViewModel> GetCountries(this ViewModelTemplateHelper helper)

Parameters

helper ViewModelTemplateHelper

The ViewModelTemplateHelper instance used to retrieve the countries.

Returns

ICollection<CountryViewModel>

A collection of CountryViewModel objects, ordered by their names.

Exceptions

ArgumentNullException

Thrown when the helper is null.

GetOrderFlowsByOrderType(ViewModelTemplateHelper, OrderType)

Retrieves a collection of order flow view models based on the specified order type.

public static ICollection<OrderFlowViewModel> GetOrderFlowsByOrderType(this ViewModelTemplateHelper helper, OrderType orderType)

Parameters

helper ViewModelTemplateHelper

The ViewModelTemplateHelper instance used to retrieve the order flows.

orderType OrderType

The OrderType for which to retrieve the order flows.

Returns

ICollection<OrderFlowViewModel>

A collection of OrderFlowViewModel objects corresponding to the specified order type.

Exceptions

ArgumentNullException

Thrown when the helper is null.

To top