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
languageIdstringThe ID of the language used to resolve localised values.
currencyCodestringThe ISO 4217 currency code (e.g.
"EUR").countryCodestringThe ISO 3166-1 alpha-2 country code (e.g.
"DE").shopIdstringThe ID of the shop providing the pricing context.
userIdintThe 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
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()