Class FacetOptionViewModelSettings
- Namespace
- Dynamicweb.Ecommerce
- Assembly
- Dynamicweb.Ecommerce.dll
Controls which properties are populated on a FacetOptionViewModel when it is built by the view model builder.
public class FacetOptionViewModelSettings : ViewSettingsBaseCurrencyBase<FacetOptionViewModel>
- Inheritance
-
FacetOptionViewModelSettings
- Inherited Members
Constructors
FacetOptionViewModelSettings()
Initializes a new instance of FacetOptionViewModelSettings with default settings. Used by the Web API infrastructure when deserializing settings from a request.
public FacetOptionViewModelSettings()
FacetOptionViewModelSettings(string, string, string, string, int)
Initializes a new instance of FacetOptionViewModelSettings with currency and shop context.
public FacetOptionViewModelSettings(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.
Methods
EnsureFilledPropertiesExist()
If filled properties are empty, this method will add ALL valid property names.
public override void EnsureFilledPropertiesExist()