ProductReviewViewModel

Overview

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.

Requirements

The following pre-requisites will be necessary to accomplish the goals of this article:

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

Getting Started

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

ProductReviewViewModel

The ProductReviewViewModel object will contain all of the details of a single instance of a product review in your Hotcakes Commerce store.

Members

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.

Member Type Description
City String

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.

 

Have more questions? Submit a request

Need More Help?

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