Whenever you use any "drill down" view, the CategoryFilterViewModel is what powers the filtering capability you see. This article will help you understand what's available to you in the view model.
The following pre-requisites will be necessary to accomplish the goals of this article:
- General understanding of template engines
- Familiarity with template languages
- Familiarity with ASP.NET MVC Razor
There are no tasks needed to get started with understanding this object.
The CategoryFilterViewModel object will contain all of the properties needed for the drill down views in your Hotcakes Commerce store.
The following table gives you details on the various members of the CategoryFilterViewModel object. The descriptions are based upon default functionality and the default Viewset included with Hotcakes.
Selected category ID.
|IsConsideredSearchable||Bool||There is one flag to determine whether a specific category is searchable or not. We can set this flag to overwrite or ignore IsSearchable = false. This currently defaults to true.|
|IsSearchable||Bool||Category is searchable by Hotcakes search provider or not. Defaults to true.|
|Manufacturers||List<String>||List of the manufacturers which needs to be shown in the drill-down filter.|
|MaxPrice||Decimal||(Nullable) Maximum price by which needs to filter the list of products.|
|MinPrice||Decimal||(Nullable) Minimum price by which the drill-down view needs to filter the list of products.|
|ModuleId||Int||The unique ID of the module where the current drill-down filter is being used.|
|PageNumber||Int||(Nullable) Represents which page is currently being displayed. Default is 1.|
|PropertiesJson||String||Properties of the category(ies) in JSON format to use inside the drill-down view filter.|
|SortOrder||CategorySortOrder||Used to sort the products displayed in the category drill-down view.|
|Types||List<String>||List of category types for the filter.|
|Vendors||List<String>||List of the vendors which need to be shown in the drill-down filter.|