Table of Contents

Class FacetViewModelSettings

Namespace
Dynamicweb.Ecommerce
Assembly
Dynamicweb.Ecommerce.dll

Controls how a FacetViewModel is built, including how its Options are populated.

public class FacetViewModelSettings : ViewSettingsBaseCurrencyBase<FacetViewModel>
Inheritance
FacetViewModelSettings
Inherited Members

Constructors

FacetViewModelSettings()

Initializes a new instance of FacetViewModelSettings with default settings. Used by the Web API infrastructure when deserializing settings from a request.

public FacetViewModelSettings()

FacetViewModelSettings(string, string, string, string, int)

Initializes a new instance of FacetViewModelSettings with currency and shop context.

public FacetViewModelSettings(string languageId, string currencyCode, string countryCode, string shopId, int userId)

Parameters

languageId string

The ID of the language used to resolve localised values.

currencyCode string

The ISO 4217 currency code (e.g. "EUR").

countryCode string

The ISO 3166-1 alpha-2 country code (e.g. "DE").

shopId string

The ID of the shop providing the pricing context.

userId int

The ID of the current user.

Properties

FacetOptionSettings

Gets or sets the settings that control how each FacetOptionViewModel in Options is populated. Automatically initialised by EnsureFilledPropertiesExist().

public FacetOptionViewModelSettings FacetOptionSettings { get; set; }

Property Value

FacetOptionViewModelSettings

Methods

EnsureFilledPropertiesExist()

Ensures that FacetOptionSettings is initialised and configured before the view model is built. Called automatically by the view model builder pipeline.

public override void EnsureFilledPropertiesExist()

See Also

To top