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
FacetGroups
Gets or sets the facet groups.
public IList<FacetGroupViewModel> FacetGroups { get; set; }
Property Value
Group
Gets or sets the group if one has been specified.
public ProductGroupViewModel Group { get; set; }
Property Value
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
PageSize
Gets or sets the items count per page.
public int PageSize { get; set; }
Property Value
Products
Gets or sets the list of products.
public IList<ProductViewModel> Products { get; set; }
Property Value
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
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
SpellCheckerSuggestions
Gets or sets the collection of suggestions from a spell checker.
public IList<string> SpellCheckerSuggestions { get; set; }
Property Value
SubGroups
Gets or sets the subgroups of the current group if any.
public IList<ProductGroupViewModel> SubGroups { get; set; }
Property Value
TotalProductsCount
Gets or sets the total number of products in the list.
public int TotalProductsCount { get; set; }