The ProductReviewViewModel is the model used to contain all of the details for a single product review. 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 ProductReviewViewModel object will contain all of the details of a single instance of a product review in your Hotcakes Commerce store.
The following table gives you details on the various members of the ProductReviewViewModel object. The descriptions are based on default functionality and the default Viewset included with Hotcakes.
This property will have the name of the city of the person who created the review. If this value is empty, it will be pulled from the default shipping address of the customer.
|ProductReview||ProductReview||The actual review information such as rating, date, and comment will be in this property.|
|State||String||This property will have the name of the region of the person who created the review. If this value is empty, it will be pulled from the default shipping address of the customer.|
|UserID||String||This is the unique identifier for the customer that created the review.|
|UserName||String||The first name and last initial of the customer who created the review will be found in this property.|