Table of Contents

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

languageId string

The language ID.

currencyCode string

The currency code.

countryCode string

The country code.

shopId string

The shop ID.

userId int

The user ID.

Properties

FacetGroupNames

Gets or sets the list of facet group names.

public IList<string> FacetGroupNames { get; set; }

Property Value

IList<string>

FacetSettings

Gets or sets the facet view model settings.

public FacetViewModelSettings FacetSettings { get; set; }

Property Value

FacetViewModelSettings

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

bool

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()
To top