DrillDownJsonModel

Overview

The category viewer module allows an administrator to use various built-in views, as well as new views that may have been created by a design team.  When you use a view called "DrillDown" or any view that begins with that term, this is the view model being returned to the view for rendering the categories and products.

Requirements

The following prerequisites will be necessary to accomplish the goals of this article:

  • General understanding of template engines
  • Understanding HTML, CSS, JavaScript, and KnockoutJS
  • Familiarity with template languages
  • Familiarity with ASP.NET MVC Razor

Getting Started

There are no tasks needed to get started with understanding this object. 

DrillDownJsonModel

This is the view model that the web services return to the drilldown view(s) you might have in your site.

Members

The following table gives you details on the various members of the CheckoutViewModel object. The descriptions are based upon default functionality and the default Viewset included with Hotcakes.

Member Type Description
Manufactures CheckboxFacetItem If the module settings allow it, this will be loaded with all manufacturers that are associated with the items in the Products property.  (Please Note: This will soon be replaced with the correctly spelled, "Manufacturers" property.)
MaxPrice Decimal This will contain the highest price found in the local Products property.
MinPrice Decimal This will contain the lowest price found in the local Products property.
PagerData PagerViewModel Will have properties to properly populate and render the paging controls in the view, per the products being returned from the default load or search/filter selections made.
Products SingleProductJsonModel This is a listing of the products that match the first page load, or the facets/filters that have been selected by the customer in the view.  This property will help to populate most of the other properties in this view model.
Properties PropertyFacetItem Will contain all of the product type properties that are associated with the items in the local Products property.
SelectedManufacturers SelectedFacetItem Any manufacturers selected by the customer and/or the URL parameters will be found in this property.
SelectedMaxPrice Decimal This property will reflect the default or selected maximum price, to be used by the API for filtering the items loaded into the local Products property.
SelectedMinPrice Decimal This property will reflect the default or selected minimum price, to be used by the API for filtering the items loaded into the local Products property.
SelectedProperties SelectedPropertyFacetItem Any product type properties selected by the customer and/or the URL parameters will be found in this property.
SelectedTypes SelectedFacetItem Any product types selected by the customer and/or the URL parameters will be found in this property.
SelectedVendors SelectedFacetItem Any vendors selected by the customer and/or the URL parameters will be found in this property.
SortOrder CategorySortOrder Contains the default selection from the module settings, or the sort preference made by the customer.
SubCategories CategoryMenuItemViewModel These will be the categories that are children to the category currently being viewed, that are associated with the items in the Products property.
TotalCount Integer This will be the total number of products matching the current facet selections.
Types CheckboxFacetItem Will contain all of the product types that are associated with the items in the local Products property.
Vendors CheckboxFacetItem If the module settings allow it, this will be loaded with all vendors that are associated with the items in the Products property.

 

Have more questions? Submit a request

Need More Help?

Do you need more assistance with this article? Please review your support options.