Table of Contents

Class ProductListViewModel

Namespace
Dynamicweb.Ecommerce.ProductCatalog
Assembly
Dynamicweb.Ecommerce.dll

This class represents a view model for a product list.

public class ProductListViewModel : FillableViewModelBase
Inheritance
ProductListViewModel
Inherited Members
Extension Methods

Properties

CurrentPage

Gets or sets the current page number.

public int CurrentPage { get; set; }

Property Value

int

FacetGroups

Gets or sets the facet groups.

public IList<FacetGroupViewModel> FacetGroups { get; set; }

Property Value

IList<FacetGroupViewModel>

Group

Gets or sets the group if one has been specified.

public ProductGroupViewModel Group { get; set; }

Property Value

ProductGroupViewModel

Remarks

If the list is showing products in a group using ?GroupID=group1, this will contain the group information If the list is a search result, e.g. using q=search, no group is present and this will be null

PageCount

Gets or sets the count of pages. If this value is greater than 0, the view model result will be paginated, otherwise, plain list.

public int PageCount { get; set; }

Property Value

int

PageSize

Gets or sets the items count per page.

public int PageSize { get; set; }

Property Value

int

Products

Gets or sets the list of products.

public IList<ProductViewModel> Products { get; set; }

Property Value

IList<ProductViewModel>

SortBy

Gets or sets the field that the list is sorted by. If the result is sorted by multiple fields, only the first is here.

public string SortBy { get; set; }

Property Value

string

SortOrder

Gets or sets the sort order that the list is sorted by. If the result is sorted by multiple fields, only the first is here.

public string SortOrder { get; set; }

Property Value

string

SpellCheckerSuggestions

Gets or sets the collection of suggestions from a spell checker.

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

Property Value

IList<string>

SubGroups

Gets or sets the subgroups of the current group if any.

public IList<ProductGroupViewModel> SubGroups { get; set; }

Property Value

IList<ProductGroupViewModel>

TotalProductsCount

Gets or sets the total number of products in the list.

public int TotalProductsCount { get; set; }

Property Value

int
To top