Class FacetGroupViewModelSettings
- Namespace
- Dynamicweb.Ecommerce
- Assembly
- Dynamicweb.Ecommerce.dll
Represents the settings for the facet group view model.
public class FacetGroupViewModelSettings : ViewSettingsBaseCurrencyBase<FacetGroupViewModel>
- Inheritance
-
FacetGroupViewModelSettings
- Inherited Members
Constructors
FacetGroupViewModelSettings()
Initializes a new instance of the FacetGroupViewModelSettings class.
public FacetGroupViewModelSettings()
FacetGroupViewModelSettings(string, string, string, string, int)
Initializes a new instance of the FacetGroupViewModelSettings class.
public FacetGroupViewModelSettings(string languageId, string currencyCode, string countryCode, string shopId, int userId)
Parameters
languageIdstringThe language ID.
currencyCodestringThe currency code.
countryCodestringThe country code.
shopIdstringThe shop ID.
userIdintThe user ID.
Properties
FacetGroupNames
Gets or sets the list of facet group names.
public IList<string> FacetGroupNames { get; set; }
Property Value
FacetSettings
Gets or sets the facet view model settings.
public FacetViewModelSettings FacetSettings { get; set; }
Property Value
IncludeFacetOptionsWithNoResults
Gets or sets a value indicating whether facet options with zero results are included in the response.
public bool IncludeFacetOptionsWithNoResults { get; set; }
Property Value
Remarks
Set this property to true to include all possible facet options, even if they do not match any results. This can be useful for displaying all available filter options to users, regardless of current search results.
Methods
EnsureFilledPropertiesExist()
If filled properties are empty, this method will add ALL valid property names.
public override void EnsureFilledPropertiesExist()